mirror of
https://github.com/yattee/yattee.git
synced 2026-10-30 16:37:17 +00:00
Prefer the avfoundation audio output on iOS and macOS
AVSampleBufferAudioRenderer is the system media path, so it gets Spatial Audio / Spatialize Stereo and head tracking, which audiounit and coreaudio output never do. iOS now uses avfoundation,audiounit like tvOS, and all macOS versions use avfoundation,coreaudio (previously only macOS 27+).
This commit is contained in:
@@ -120,16 +120,10 @@ private struct DefaultOptionsSection: View {
|
||||
options.append(("framedrop", "decoder+vo"))
|
||||
options.append(("audio-client-name", "Yattee"))
|
||||
|
||||
#if os(tvOS)
|
||||
options.append(("ao", "avfoundation,audiounit"))
|
||||
#elseif os(iOS)
|
||||
options.append(("ao", "audiounit"))
|
||||
#if os(macOS)
|
||||
options.append(("ao", "avfoundation,coreaudio"))
|
||||
#else
|
||||
if ProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 27 {
|
||||
options.append(("ao", "avfoundation,coreaudio"))
|
||||
} else {
|
||||
options.append(("ao", "coreaudio,avfoundation"))
|
||||
}
|
||||
options.append(("ao", "avfoundation,audiounit"))
|
||||
#endif
|
||||
|
||||
options.append(("cache", "yes"))
|
||||
|
||||
Reference in New Issue
Block a user