From 43a57e02ea5b767960b9da2899d5765dae46a035 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 26 Sep 2023 18:34:51 -0700 Subject: Set the appropriate padding size It's based on the original/stream size, not the ALCdevice's. --- alc/backends/wasapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/backends/wasapi.cpp') diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 7eae84c1..b68439a8 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -1226,7 +1226,7 @@ FORCE_ALIGN int WasapiPlayback::mixerSpatialProc() * update it dynamically based on the stream, so a fixed size may be the * best we can do. */ - mPadding.store(mDevice->BufferSize-mDevice->UpdateSize, std::memory_order_release); + mPadding.store(mOrigBufferSize-mOrigUpdateSize, std::memory_order_release); while(!mKillNow.load(std::memory_order_relaxed)) { -- cgit v1.2.3