aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-18 08:38:29 +0000
committerPaweł Kołodziejski2002-09-18 08:38:29 +0000
commit9280c6bfbd9b6a39f4e61588f50dacdc80dbf305 (patch)
treef85718b1120d65d18f39b73cca88f8f11737fbcc /scumm/smush
parentc8a63096ad8d2d8703b7f85ded813f18a2e164d5 (diff)
downloadscummvm-rg350-9280c6bfbd9b6a39f4e61588f50dacdc80dbf305.tar.gz
scummvm-rg350-9280c6bfbd9b6a39f4e61588f50dacdc80dbf305.tar.bz2
scummvm-rg350-9280c6bfbd9b6a39f4e61588f50dacdc80dbf305.zip
oops, forgot braces :)
svn-id: r4963
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/imuse_channel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/smush/imuse_channel.cpp b/scumm/smush/imuse_channel.cpp
index 5106a7b76c..89cef462bb 100644
--- a/scumm/smush/imuse_channel.cpp
+++ b/scumm/smush/imuse_channel.cpp
@@ -307,9 +307,10 @@ void ImuseChannel::getSoundData(int16 * snd, int32 size) {
if(_dataSize <= 0 || _bitsize <= 8) error("invalid call to imuse_channel::read_sound_data()");
if(_channels == 2) size *= 2;
if(_rate == 11025) {
- for(int32 i = 0; i < size; i++)
+ for(int32 i = 0; i < size; i++) {
snd[i * 2] = READ_BE_UINT16(_sbuffer + 2 * i);
snd[i * 2 + 1] = snd[i * 2];
+ }
} else {
for(int32 i = 0; i < size; i++)
snd[i] = READ_BE_UINT16(_sbuffer + 2 * i);
@@ -325,9 +326,10 @@ void ImuseChannel::getSoundData(int8 * snd, int32 size) {
if(_dataSize <= 0 || _bitsize > 8) error("invalid call to imuse_channel::read_sound_data()");
if(_channels == 2) size *= 2;
if(_rate == 11025) {
- for(int32 i = 0; i < size; i++)
+ for(int32 i = 0; i < size; i++) {
snd[i * 2] = _sbuffer[i];
snd[i * 2 + 1] = _sbuffer[i];
+ }
} else {
for(int32 i = 0; i < size; i++)
snd[i] = _sbuffer[i];