From 9918a68d7399d86bd637524761a31b2eeb3590aa Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 8 Jul 2026 07:59:11 +0200 Subject: [PATCH] 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. --- Yattee/Views/Settings/MPVOptionsSettingsView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Yattee/Views/Settings/MPVOptionsSettingsView.swift b/Yattee/Views/Settings/MPVOptionsSettingsView.swift index ee31a357..6e4905bf 100644 --- a/Yattee/Views/Settings/MPVOptionsSettingsView.swift +++ b/Yattee/Views/Settings/MPVOptionsSettingsView.swift @@ -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 {