Muting is delayed with ao_avfoundation
Open
Nobody has claimed this yet.
ao:avfoundation
os:mac
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.1
FFmpeg library versions:
libavcodec 61.3.100 (runtime 61.19.100)
libavdevice 61.1.100 (runtime 61.3.100)
libavfilter 10.1.100 (runtime 10.4.100)
libavformat 61.1.100 (runtime 61.7.100)
libavutil 59.8.100 (runtime 59.39.100)
libswresample 5.1.100 (runtime 5.3.100)
libswscale 8.1.100 (runtime 8.3.100)
Other Information
- macOS version: Sequoia 15.0.1
- Source of mpv: Homebrew
- Introduced in version: 0.39.0
Reproduction Steps
Play any video with --no-config --ao=avfoundation and toggle mute (either by using the keybind or using the menu bar).
Expected Behavior
Same behaviour as ao_coreaudio, which mutes as soon as toggled.
Actual Behavior
It takes at least a second to actually mute the audio.
Log File
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- I tested with the latest mpv version to validate that the issue is not already fixed.
- I provided all required information including system and mpv version.
- I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- I attached the full, untruncated log file.
- I attached the backtrace in the case of a crash.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce with mpv --no-config --ao=avfoundation and toggle mute, then compare the behavior with ao_coreaudio using the attached output.txt log. Start at the ao_avfoundation and ao_coreaudio audio backends. Done means muting takes effect immediately with ao_avfoundation, matching ao_coreaudio.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100