mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
Not all sound effects are mono, so we need to check.
svn-id: r11995
This commit is contained in:
parent
6c3e0134c2
commit
db5a2ba1c8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user