aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/backends/wasapi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index 4494317a..516ac02c 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -1710,6 +1710,10 @@ HRESULT WasapiPlayback::resetProxy()
OutputType.Samples.wValidBitsPerSample = OutputType.Format.wBitsPerSample;
OutputType.SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;
+ /* Match the output rate if not requesting anything specific. */
+ if(!mDevice->Flags.test(FrequencyRequest))
+ mDevice->Frequency = OutputType.Format.nSamplesPerSec;
+
bool isRear51{false};
if(!mDevice->Flags.test(ChannelsRequest))
{