[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.211,1.212

Travis Howell kirben at users.sourceforge.net
Sat Aug 30 08:33:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv29526/scumm

Modified Files:
	sound.cpp 
Log Message:

Very basic sfx support for Amiga version of maniac/zak


Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -d -r1.211 -r1.212
--- sound.cpp	30 Aug 2003 09:42:29 -0000	1.211
+++ sound.cpp	30 Aug 2003 15:32:57 -0000	1.212
@@ -453,6 +453,18 @@
 		}
 	}
 
+	if ((_scumm->_features & GF_AMIGA) && (_scumm->_version <= 2)) {
+		// Some very basic sound effects support
+		if (READ_BE_UINT16(ptr + 14) == 0x0880) {
+			size = READ_BE_UINT16(ptr + 6);
+			rate = 11000;
+			sound = (char *)malloc(size);
+			memcpy(sound,ptr + 100,size);
+			_scumm->_mixer->playRaw(NULL,sound,size,rate,SoundMixer::FLAG_AUTOFREE,soundID);
+			return;
+		}
+	}
+
 	if (_scumm->_gameId == GID_MONKEY_VGA || _scumm->_gameId == GID_MONKEY_EGA) {
 		// Sound is currently not supported at all in the amiga versions of these games
 		if (_scumm->_features & GF_AMIGA)





More information about the Scummvm-git-logs mailing list