[Scummvm-cvs-logs] SF.net SVN: scummvm: [33079] scummvm/trunk/engines/queen/sound.cpp

cyx at users.sourceforge.net cyx at users.sourceforge.net
Tue Jul 15 22:31:12 CEST 2008


Revision: 33079
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33079&view=rev
Author:   cyx
Date:     2008-07-15 13:31:11 -0700 (Tue, 15 Jul 2008)

Log Message:
-----------
fix bug #1876741: changed .SB playback rate to 11840Hz (matches dos game)

Modified Paths:
--------------
    scummvm/trunk/engines/queen/sound.cpp

Modified: scummvm/trunk/engines/queen/sound.cpp
===================================================================
--- scummvm/trunk/engines/queen/sound.cpp	2008-07-15 20:26:12 UTC (rev 33078)
+++ scummvm/trunk/engines/queen/sound.cpp	2008-07-15 20:31:11 UTC (rev 33079)
@@ -256,6 +256,8 @@
 }
 
 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 @@
 	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);
 	}
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list