diff options
author | Chris Robinson <[email protected]> | 2019-09-11 06:58:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-11 06:58:27 -0700 |
commit | a895709b6f67586d4aec3c6f0b276b01899cae86 (patch) | |
tree | 5b6c3508fefba53008e6799d4a79f8157269e55f /alc/backends/wasapi.cpp | |
parent | be0442c6207cc10fca079a803bbdd8985959b657 (diff) |
Fix function declaration
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r-- | alc/backends/wasapi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 55c95146..806db122 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1565,8 +1565,9 @@ 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); + mSampleConv = CreateSampleConverter(srcType, mDevice->FmtType, + static_cast<ALuint>(mDevice->channelsFromFmt()), OutputType.Format.nSamplesPerSec, + mDevice->Frequency, BSinc24Resampler); if(!mSampleConv) { ERR("Failed to create converter for %s format, dst: %s %uhz, src: %s %luhz\n", |