From acc618a1a68c99d61bf0c1897ba1af24e4ebed01 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 24 Sep 2023 16:06:15 -0700 Subject: Match the output sample rate if not requesting one --- alc/backends/wasapi.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)) { -- cgit v1.2.3