aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-12-28 15:01:44 +0000
committerTorbjörn Andersson2003-12-28 15:01:44 +0000
commitdb5a2ba1c8ee7ec43f80aa24a60b3a9fe2afd4d7 (patch)
tree6b3d6ee6cec186888e8c84041b23c794d1e0a53c
parent6c3e0134c26947d6a7f53a731ae2a1a5f27ad815 (diff)
downloadscummvm-rg350-db5a2ba1c8ee7ec43f80aa24a60b3a9fe2afd4d7.tar.gz
scummvm-rg350-db5a2ba1c8ee7ec43f80aa24a60b3a9fe2afd4d7.tar.bz2
scummvm-rg350-db5a2ba1c8ee7ec43f80aa24a60b3a9fe2afd4d7.zip
Not all sound effects are mono, so we need to check.
svn-id: r11995
-rw-r--r--sword1/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp
index 3c32f9abdc..ec5a6e2a09 100644
--- a/sword1/sound.cpp
+++ b/sword1/sound.cpp
@@ -143,6 +143,8 @@ void SwordSound::playSample(QueueElement *elem) {
flags = SoundMixer::FLAG_16BITS | SoundMixer::FLAG_LITTLE_ENDIAN;
else
flags = SoundMixer::FLAG_UNSIGNED;
+ if (READ_LE_UINT16(sampleData + 0x16) == 2)
+ flags |= SoundMixer::FLAG_STEREO;
_mixer->playRaw(&elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan);
}
} else