Skip to content

Commit

Permalink
Honor the wasapi allow-resampler option with spatial sound output
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Sep 25, 2023
1 parent acc618a commit 4fb1c23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alc/backends/wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 4fb1c23

Please sign in to comment.