aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'al/buffer.cpp')
-rw-r--r--al/buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index 8534fa54..2313a067 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -515,9 +515,9 @@ void PrepareCallback(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq,
ALBuf->OriginalType = SrcType;
ALBuf->OriginalSize = 0;
- ALBuf->mBlockAlign = 1;
ALBuf->Access = 0;
+ ALBuf->mBlockAlign = (SrcType == UserFmtIMA4 || SrcType == UserFmtMSADPCM) ? align : 1;
ALBuf->mSampleRate = static_cast<ALuint>(freq);
ALBuf->mChannels = *DstChannels;
ALBuf->mType = *DstType;