From 73df39b8f8cefa0c0fca0e287b548063e9e62636 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 5 Dec 2022 14:39:49 -0800 Subject: Use the correct variable for reading the WASAPI playback rate --- alc/backends/wasapi.cpp | 4 ++-- 1 file 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}; -- cgit v1.2.3