aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/wasapi.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-05 14:39:49 -0800
committerChris Robinson <[email protected]>2022-12-05 14:39:49 -0800
commit73df39b8f8cefa0c0fca0e287b548063e9e62636 (patch)
treeb468b0d017059d1015fb92296878921628977fb2 /alc/backends/wasapi.cpp
parent59f3424ed5796c2cfc622217f56b594dcf31ce5b (diff)
Use the correct variable for reading the WASAPI playback rate
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r--alc/backends/wasapi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index 5a35b5be..154a2200 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -1056,9 +1056,9 @@ HRESULT WasapiPlayback::resetProxy()
wfx = nullptr;
if(!GetConfigValueBool(mDevice->DeviceName.c_str(), "wasapi", "allow-resampler", true))
- mDevice->Frequency = mFormat.Format.nSamplesPerSec;
+ mDevice->Frequency = OutputType.Format.nSamplesPerSec;
else
- mDevice->Frequency = minu(mDevice->Frequency, mFormat.Format.nSamplesPerSec);
+ mDevice->Frequency = minu(mDevice->Frequency, OutputType.Format.nSamplesPerSec);
const uint32_t chancount{OutputType.Format.nChannels};
const DWORD chanmask{OutputType.dwChannelMask};