From 7d4841b1c637d1ffb61049fdc275dcaaf487f434 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 11 Jan 2022 18:18:38 -0800 Subject: [PATCH] Core Audio output: Don't upmix unless output device requests it by default --- Audio/Output/OutputCoreAudio.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Audio/Output/OutputCoreAudio.m b/Audio/Output/OutputCoreAudio.m index 9239460f6..d01532092 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -265,8 +265,7 @@ default_device_changed(AudioObjectID inObjectID, UInt32 inNumberAddresses, const deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved; // deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsFloat; // deviceFormat.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger; - if (@available(macOS 12.0, *)) { - // Let's enable surround upmixing, for surround and spatial output + if (deviceFormat.mChannelsPerFrame > 8) { deviceFormat.mChannelsPerFrame = 8; } // And force a default rate for crappy devices