diff options
author | Chris Robinson <[email protected]> | 2022-11-13 14:10:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-11-13 14:10:15 -0800 |
commit | c45843964bc461cbf5f99ec651bd8c07fbb14b35 (patch) | |
tree | 72e3195a02f4847e507d788c582418b03b67ac88 /alc/backends/wasapi.cpp | |
parent | 156f3b6ff5e1e686c8b8f6584a6a1625dcc5c365 (diff) |
Change a function to a static method
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r-- | alc/backends/wasapi.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 6bbc4439..504313b4 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1200,7 +1200,7 @@ HRESULT WasapiPlayback::resetProxy() mBufferFilled = 0; if(mDevice->Frequency != mFormat.Format.nSamplesPerSec) { - mResampler = CreateSampleConverter(mDevice->FmtType, mDevice->FmtType, + mResampler = SampleConverter::Create(mDevice->FmtType, mDevice->FmtType, mFormat.Format.nChannels, mDevice->Frequency, mFormat.Format.nSamplesPerSec, Resampler::FastBSinc24); mResampleBuffer = std::make_unique<char[]>(size_t{mDevice->UpdateSize} * @@ -1769,8 +1769,9 @@ HRESULT WasapiCapture::resetProxy() if(mDevice->Frequency != InputType.Format.nSamplesPerSec || mDevice->FmtType != srcType) { - mSampleConv = CreateSampleConverter(srcType, mDevice->FmtType, mDevice->channelsFromFmt(), - InputType.Format.nSamplesPerSec, mDevice->Frequency, Resampler::FastBSinc24); + mSampleConv = SampleConverter::Create(srcType, mDevice->FmtType, + mDevice->channelsFromFmt(), InputType.Format.nSamplesPerSec, mDevice->Frequency, + Resampler::FastBSinc24); if(!mSampleConv) { ERR("Failed to create converter for %s format, dst: %s %uhz, src: %s %luhz\n", |