diff options
author | Chris Robinson <[email protected]> | 2019-09-22 21:19:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-22 21:19:19 -0700 |
commit | 24db8a3f4bdbd787c23ac6e2ec78c2bafed81f1f (patch) | |
tree | bd55bdfda7874eb56eb444fb888e896895057d63 /alc/backends | |
parent | 95996effaf04c87b7091c904e6545bc1e5e25aee (diff) |
Make the resampler type an enum class
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/coreaudio.cpp | 2 | ||||
-rw-r--r-- | alc/backends/wasapi.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index 72754718..9e8291e2 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<ALuint>(hardwareFormat.mSampleRate), - mDevice->Frequency, BSinc24Resampler); + mDevice->Frequency, Resampler::BSinc24); mRing = CreateRingBuffer(outputFrameCount, mFrameSize, false); if(!mRing) return ALC_INVALID_VALUE; diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 1271eeaa..e1a8dc6f 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, BSinc24Resampler); + OutputType.Format.nSamplesPerSec, mDevice->Frequency, Resampler::BSinc24); if(!mSampleConv) { ERR("Failed to create converter for %s format, dst: %s %uhz, src: %s %luhz\n", |