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:
parent
b39882168b
commit
9346a4edbd
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue