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

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sat Oct 24 05:52:39 CEST 2009


Revision: 45356
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45356&view=rev
Author:   Kirben
Date:     2009-10-24 03:52:38 +0000 (Sat, 24 Oct 2009)

Log Message:
-----------
The CD music was hard coded in PCE version of Loom.

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

Modified: scummvm/trunk/engines/scumm/sound.cpp
===================================================================
--- scummvm/trunk/engines/scumm/sound.cpp	2009-10-23 22:11:41 UTC (rev 45355)
+++ scummvm/trunk/engines/scumm/sound.cpp	2009-10-24 03:52:38 UTC (rev 45356)
@@ -164,9 +164,18 @@
 	int rate;
 	byte flags = Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_AUTOFREE;
 
-	// FIXME: Sound resources are currently missing
-	if (_vm->_game.id == GID_LOOM && _vm->_game.platform == Common::kPlatformPCEngine)
+	if (_vm->_game.id == GID_LOOM && _vm->_game.platform == Common::kPlatformPCEngine) {
+		if (soundID >= 13 && soundID <= 32) {
+			static const char tracks[20] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 19, 20, 21};
+
+			_currentCDSound = soundID;
+			playCDTrack(tracks[soundID - 13], 1, 0, 0);
+		} else {
+			// FIXME: Sound effect resources are currently missing
+			printf("Sound %d unsupported\n", soundID);
+		}
 		return;
+	}
 
 	debugC(DEBUG_SOUND, "playSound #%d (room %d)", soundID,
 		_vm->getResourceRoomNr(rtSound, soundID));


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