aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-05 12:11:02 -0700
committerChris Robinson <[email protected]>2022-08-05 12:11:02 -0700
commitb77a556d7b7d1a66db4dcde0b77ea5d704254c13 (patch)
tree714b2a496c84f9ac9b0192da0d17188d19c95db3 /al
parent9d296a9c753909bb2f2ba5d281c6b13f112e4f4d (diff)
Clear the buffer from X-RAM before updating its size
Diffstat (limited to 'al')
-rw-r--r--al/buffer.cpp3
1 files changed, 3 insertions, 0 deletions
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)
{