-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
ios/macos: use non-exclusive audio session #15506
base: master
Are you sure you want to change the base?
Conversation
Download the artifacts for this pull request: |
updated the commit with desired capitalization |
mpv has |
baf634e
to
3771c60
Compare
Good point, added it |
the commit prefix should be Lines 811 to 817 in e52f975
this change should also update the corresponding manual entry for Lines 2000 to 2007 in e52f975
a bit OCD, in the commit message there is a double space between pinging @tmm1 since he did the initial implementation. i also lack any device to test this on. |
audio/out/ao_audiounit.m
Outdated
[instance setCategory:AVAudioSessionCategoryPlayback error:nil]; | ||
AVAudioSessionCategoryOptions options = 0; | ||
if (!(ao->init_flags & AO_INIT_EXCLUSIVE)) { | ||
// Non-exclusive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the comment is not needed, the condition in the if should make that clear enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above.
Sure, updated, I just tested it on iOS only, and assumed it was macOS too. Which I guess must use coreaudio? |
seems reasonable 👍🏼 |
still missing:
besides this it LGTM, though untested. |
Can you give me a hint towards the documentation |
Lines 2000 to 2007 in d827019
Add this audio output to the list |
Using this option means the OS won't pause other sources of audio when playback starts in MPV. But if --audio-exclusive is used, still use an exclusive session. This should apply to iOS, iPadOS, and tvOS.
Using this option means the OS won't pause other
sources of audio when playback starts in MPV.
This matches the behaviour on other platforms.