mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Fall back to avfoundation AO when coreaudio fails on macOS
macOS 27 beta's AUHAL rejects mpv's channel-layout property with paramErr (-50), so the coreaudio AO fails to initialize and playback is silent. Change the macOS ao option from "coreaudio" to "coreaudio,avfoundation" so mpv self-heals: older macOS keeps using coreaudio unchanged, while the beta drops to avfoundation (AVSampleBufferAudioRenderer) instead of playing no sound.
This commit is contained in:
@@ -123,7 +123,7 @@ private struct DefaultOptionsSection: View {
|
||||
#if os(iOS) || os(tvOS)
|
||||
options.append(("ao", "audiounit"))
|
||||
#else
|
||||
options.append(("ao", "coreaudio"))
|
||||
options.append(("ao", "coreaudio,avfoundation"))
|
||||
#endif
|
||||
|
||||
options.append(("cache", "yes"))
|
||||
|
||||
Reference in New Issue
Block a user