From 2d2e5539c0df2e180ab4d748413248422f3b1e30 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Sep 2019 03:44:13 -0700 Subject: Use FastBSinc24 for WASAPI and CoreAudio capture Given a fixed rate, there's no downside to the fast version. --- alc/backends/coreaudio.cpp | 2 +- alc/backends/wasapi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'alc') diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index 9e8291e2..92064336 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -618,7 +618,7 @@ ALCenum CoreAudioCapture::open(const ALCchar *name) if(outputFormat.mSampleRate != mDevice->Frequency) mConverter = CreateSampleConverter(mDevice->FmtType, mDevice->FmtType, mFormat.mChannelsPerFrame, static_cast(hardwareFormat.mSampleRate), - mDevice->Frequency, Resampler::BSinc24); + mDevice->Frequency, Resampler::FastBSinc24); mRing = CreateRingBuffer(outputFrameCount, mFrameSize, false); if(!mRing) return ALC_INVALID_VALUE; diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index e1a8dc6f..2a610c8d 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1568,7 +1568,7 @@ HRESULT WasapiCapture::resetProxy() if(mDevice->Frequency != OutputType.Format.nSamplesPerSec || mDevice->FmtType != srcType) { mSampleConv = CreateSampleConverter(srcType, mDevice->FmtType, mDevice->channelsFromFmt(), - OutputType.Format.nSamplesPerSec, mDevice->Frequency, Resampler::BSinc24); + OutputType.Format.nSamplesPerSec, mDevice->Frequency, Resampler::FastBSinc24); if(!mSampleConv) { ERR("Failed to create converter for %s format, dst: %s %uhz, src: %s %luhz\n", -- cgit v1.2.3