aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-26 18:34:51 -0700
committerChris Robinson <[email protected]>2023-09-26 18:34:51 -0700
commit43a57e02ea5b767960b9da2899d5765dae46a035 (patch)
tree840b6a90eb1f2c29206b7d09ad87d4d04eff2afc /alc/backends
parent3ab2ca28f82073e0baeb25f49163f7353be4b2ca (diff)
Set the appropriate padding size
It's based on the original/stream size, not the ALCdevice's.
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/wasapi.cpp2
1 files changed, 1 insertions, 1 deletions
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))
{