From b77a556d7b7d1a66db4dcde0b77ea5d704254c13 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 5 Aug 2022 12:11:02 -0700 Subject: [PATCH] Clear the buffer from X-RAM before updating its size --- al/buffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/al/buffer.cpp b/al/buffer.cpp index 9b455b9c..d427f214 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -631,6 +631,9 @@ void LoadData(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq, ALuint size, } newdata.swap(ALBuf->mData); } +#ifdef ALSOFT_EAX + eax_x_ram_clear(*context->mALDevice, *ALBuf); +#endif if(SrcType == UserFmtIMA4) {