Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device and output selection support #85

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

bsneed
Copy link
Contributor

@bsneed bsneed commented Apr 11, 2024

  • Adds AudioDevice class.
  • Adds localDevices property to retrieve a list of visible audio output devices.
  • Adds outputDevice property to get / set the audio output device.
  • Fixed deadlock in AVPlayerWrapper where the delegate can issue a state change while still inside the lock.
  • Depends on Added AudioTap functionality #80

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 74.70588% with 43 lines in your changes are missing coverage. Please review.

Project coverage is 77.54%. Comparing base (4d3c1db) to head (8dd0a04).

Files Patch % Lines
Sources/SwiftAudioEx/Utils/Devices.swift 69.72% 33 Missing ⚠️
Sources/SwiftAudioEx/AudioTap.swift 85.71% 7 Missing ⚠️
Sources/SwiftAudioEx/AudioItem.swift 0.00% 2 Missing ⚠️
Sources/SwiftAudioEx/AudioPlayer.swift 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
- Coverage   78.33%   77.54%   -0.80%     
==========================================
  Files          17       19       +2     
  Lines        1288     1456     +168     
==========================================
+ Hits         1009     1129     +120     
- Misses        279      327      +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant