diff --git a/Yattee.xcodeproj/project.pbxproj b/Yattee.xcodeproj/project.pbxproj index 7263a500..3c00ba53 100644 --- a/Yattee.xcodeproj/project.pbxproj +++ b/Yattee.xcodeproj/project.pbxproj @@ -1233,8 +1233,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/mpvkit/MPVKit.git"; requirement = { - kind = upToNextMajorVersion; - minimumVersion = 0.41.0; + kind = exactVersion; + version = "0.41.0-n8.1.2"; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 1520ed4d..dded042d 100644 --- a/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Yattee.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,8 +6,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/mpvkit/MPVKit.git", "state" : { - "revision" : "613c0ccc3acf70e136aaff880a9b5fe8fdfaf5b8", - "version" : "0.41.0" + "revision" : "99030e05253f0977b5e00eb079416565c608f2b1", + "version" : "0.41.0-n8.1.2" } }, { diff --git a/Yattee/Services/Player/MPV/MPVClient.swift b/Yattee/Services/Player/MPV/MPVClient.swift index a9444911..d5ca42d0 100644 --- a/Yattee/Services/Player/MPV/MPVClient.swift +++ b/Yattee/Services/Player/MPV/MPVClient.swift @@ -453,7 +453,12 @@ final class MPVClient: @unchecked Sendable { // Audio setOptionSync("audio-client-name", "Yattee") - #if os(iOS) || os(tvOS) + #if os(tvOS) + // Prefer avfoundation (AVSampleBufferAudioRenderer): audiounit can't open + // 32-channel HDMI routes (Atmos "Continuous Audio Output") and stays silent. + // mpv falls back to audiounit if avfoundation fails to initialize. + setOptionSync("ao", "avfoundation,audiounit") + #elseif os(iOS) setOptionSync("ao", "audiounit") #elseif os(macOS) setOptionSync("ao", "coreaudio")