diff options
author | Gregory Montoir | 2008-07-15 20:31:11 +0000 |
---|---|---|
committer | Gregory Montoir | 2008-07-15 20:31:11 +0000 |
commit | cdade7eff3e481ef7aca404ca13138cccd920365 (patch) | |
tree | d113acdb6624d9941472318facc77c5c2d88ec11 /engines/queen | |
parent | 2bae0df17e2c2a77295b13b107b208e63147638d (diff) | |
download | scummvm-rg350-cdade7eff3e481ef7aca404ca13138cccd920365.tar.gz scummvm-rg350-cdade7eff3e481ef7aca404ca13138cccd920365.tar.bz2 scummvm-rg350-cdade7eff3e481ef7aca404ca13138cccd920365.zip |
fix bug #1876741: changed .SB playback rate to 11840Hz (matches dos game)
svn-id: r33079
Diffstat (limited to 'engines/queen')
-rw-r--r-- | engines/queen/sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/queen/sound.cpp b/engines/queen/sound.cpp index 3672eecce8..f4e0116cf1 100644 --- a/engines/queen/sound.cpp +++ b/engines/queen/sound.cpp @@ -256,6 +256,8 @@ void PCSound::playSound(const char *base, bool isSpeech) { } void SBSound::playSoundData(Common::File *f, uint32 size, Audio::SoundHandle *soundHandle) { + // In order to simplify the code, we don't parse the .sb header but hard-code the + // values. Refer to tracker item #1876741 for details on the format/fields. int headerSize; f->seek(2, SEEK_CUR); uint16 version = f->readUint16LE(); @@ -277,7 +279,7 @@ void SBSound::playSoundData(Common::File *f, uint32 size, Audio::SoundHandle *so if (sound) { f->read(sound, size); byte flags = Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_AUTOFREE; - _mixer->playRaw(Audio::Mixer::kSFXSoundType, soundHandle, sound, size, 11025, flags); + _mixer->playRaw(Audio::Mixer::kSFXSoundType, soundHandle, sound, size, 11840, flags); } } |