Core Audio output: Don't upmix unless output device requests it by default

CQTexperiment
Christopher Snowhill 2022-01-11 18:18:38 -08:00
parent ee05fe9e44
commit 7d4841b1c6
1 changed files with 1 additions and 2 deletions

View File

@ -265,8 +265,7 @@ default_device_changed(AudioObjectID inObjectID, UInt32 inNumberAddresses, const
deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved; deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved;
// deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsFloat; // deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsFloat;
// deviceFormat.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger; // deviceFormat.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
if (@available(macOS 12.0, *)) { if (deviceFormat.mChannelsPerFrame > 8) {
// Let's enable surround upmixing, for surround and spatial output
deviceFormat.mChannelsPerFrame = 8; deviceFormat.mChannelsPerFrame = 8;
} }
// And force a default rate for crappy devices // And force a default rate for crappy devices