Fix tvOS ao value shown in MPV options settings

The read-only defaults list grouped tvOS with iOS as ao=audiounit, but
MPVClient actually sets ao=avfoundation,audiounit on tvOS (avfoundation
first because audiounit can't open 32-channel HDMI Atmos routes).
Display-only fix; no playback behavior change.
This commit is contained in:
Arkadiusz Fal
2026-07-08 07:59:11 +02:00
parent afa73e6bcb
commit 9918a68d73

View File

@@ -120,7 +120,9 @@ private struct DefaultOptionsSection: View {
options.append(("framedrop", "decoder+vo"))
options.append(("audio-client-name", "Yattee"))
#if os(iOS) || os(tvOS)
#if os(tvOS)
options.append(("ao", "avfoundation,audiounit"))
#elseif os(iOS)
options.append(("ao", "audiounit"))
#else
if ProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 27 {