-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Audio stuttering on macOS since v0.37.0 #13880
Comments
Sorry for the confusion, I believe 0.37 introduced the bug as I downgraded to 0.36 and am no more able reproduce the issue |
Can you try reverting 36d5b52 and see if that helps? |
I can confirm reverting this commit resolved the issue |
Probably worth reverting before the next release. I think there are various reports of audio issues that caused on macOS. cc @Akemi. |
i suppose we could do that. what was the reasoning behind using/introducing |
It was introduced to avoid locking audio thread. /CC @t-8ch |
Note: mpv/audio/out/ao_avfoundation.m Lines 79 to 84 in ab50451
|
huh, just use |
so it should possibly be reinvestigated in the future? |
The nonblocking variant was introduced specifically for ao_pipewire as it uses a realtime audio thread, which should not be blocked. I extended the usage to other AOs that are capable of reporting the actually available number of samples to the audio server. If it does not work work for those other AOs should be fine to revert it. |
I would be interested however why there is only one report so far. It only seems to happen for very few people. |
Thank you! |
Possibly related issues/PRs:
#13676
#12643 (comment)
#13348
Important Information
Provide following Information:
Reproduction steps
mpv <any file> --no-config
Expected behavior
No audio stuttering.
Actual behavior
Audio stutters every 20 to 60 seconds when playing any file.
I also get these kinds of errors in the macOS console:
Log file
mpv.log
(There were stutters at 0:30 and 0:40 but nothing relevant was logged)
Sample files
N/A
The text was updated successfully, but these errors were encountered: