aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2010-01-12 12:58:48 +0000
committerWillem Jan Palenstijn2010-01-12 12:58:48 +0000
commite4aed638b020a019dd6989541bd125cc93eb26c1 (patch)
treee7d4682f4bd33f041c090130aea65509e5f6bdae /sound/audiostream.cpp
parent6a5dbf6db737e976513ca840c41dcb3a9a346a3b (diff)
downloadscummvm-rg350-e4aed638b020a019dd6989541bd125cc93eb26c1.tar.gz
scummvm-rg350-e4aed638b020a019dd6989541bd125cc93eb26c1.tar.bz2
scummvm-rg350-e4aed638b020a019dd6989541bd125cc93eb26c1.zip
Fix loop alignment check
svn-id: r47264
Diffstat (limited to 'sound/audiostream.cpp')
-rw-r--r--sound/audiostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index 3fcfbe14c0..bd628d18d7 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -590,7 +590,7 @@ AudioStream *makeLinearInputStream(const byte *ptr, uint32 len, int rate,
if (is16Bit && isStereo)
assert((loopLen & 3) == 0 && (loopStart & 3) == 0 && (loopEnd & 3) == 0);
else if (is16Bit || isStereo)
- assert((loopLen & 1) == 0 && (loopStart & 1) == 0 && (loopEnd & 3) == 0);
+ assert((loopLen & 1) == 0 && (loopStart & 1) == 0 && (loopEnd & 1) == 0);
const uint32 extRate = stream->getRate() * (is16Bit ? 2 : 1) * (isStereo ? 2 : 1);