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 <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-02-12 20:59:41 -08:00
parent b39882168b
commit 9346a4edbd

View file

@ -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;