diff options
author | Chris Robinson <[email protected]> | 2023-09-24 19:10:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-24 21:06:19 -0700 |
commit | 4fb1c23ca3679cc8e9840ebcab975176bd034ab4 (patch) | |
tree | 70c0289be4df9fea8fcff80641a41425e1f4d18e /alc | |
parent | acc618a1a68c99d61bf0c1897ba1af24e4ebed01 (diff) |
Honor the wasapi allow-resampler option with spatial sound output
Diffstat (limited to 'alc')
-rw-r--r-- | alc/backends/wasapi.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 516ac02c..e26af7c9 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1793,6 +1793,10 @@ HRESULT WasapiPlayback::resetProxy() mDevice->Flags.reset(DirectEar).set(Virtualization); if(streamParams.StaticObjectTypeMask == ChannelMask_Stereo) mDevice->FmtChans = DevFmtStereo; + if(!GetConfigValueBool(mDevice->DeviceName.c_str(), "wasapi", "allow-resampler", true)) + mDevice->Frequency = OutputType.Format.nSamplesPerSec; + else + mDevice->Frequency = minu(mDevice->Frequency, OutputType.Format.nSamplesPerSec); setDefaultWFXChannelOrder(); |