From de29e33714e5a16dd013b70cb8c9806c87eb62e0 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 12 Feb 2025 20:59:41 -0800 Subject: [PATCH] Audio: No longer force output sample rate We were forcing a resampling ratio to match the HRTF filter supplied with the app, now we resample the HRTF to match the input audio, which will be resampled to match the output device settings. Signed-off-by: Christopher Snowhill --- Audio/Output/OutputCoreAudio.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/Audio/Output/OutputCoreAudio.m b/Audio/Output/OutputCoreAudio.m index ad5252a3b..36b4e1fef 100644 --- a/Audio/Output/OutputCoreAudio.m +++ b/Audio/Output/OutputCoreAudio.m @@ -545,9 +545,6 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons _deviceFormat = format; deviceFormat = *(format.streamDescription); - // Force format for HRTF - deviceFormat.mSampleRate = 96000.0; - /// Seems some 3rd party devices return incorrect stuff...or I just don't like noninterleaved data. deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved; // deviceFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsFloat;