[Scummvm-cvs-logs] CVS: scummvm/sword1 sound.cpp,1.17,1.18
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Sun Dec 28 07:02:02 CET 2003
Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv4308
Modified Files:
sound.cpp
Log Message:
Not all sound effects are mono, so we need to check.
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sound.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- sound.cpp 27 Dec 2003 05:43:03 -0000 1.17
+++ sound.cpp 28 Dec 2003 15:01:44 -0000 1.18
@@ -143,6 +143,8 @@
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
More information about the Scummvm-git-logs
mailing list