[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/bs2 function.cpp,1.7,1.8
- Next message: [Scummvm-cvs-logs] CVS: residual screen.cpp,NONE,1.1 screen.h,NONE,1.1 bitmap.h,1.2,1.3 engine.cpp,1.8,1.9 model.cpp,1.3,1.4 residual.vcproj,1.8,1.9 scene.cpp,1.13,1.14 scene.h,1.9,1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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)
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/bs2 function.cpp,1.7,1.8
- Next message: [Scummvm-cvs-logs] CVS: residual screen.cpp,NONE,1.1 screen.h,NONE,1.1 bitmap.h,1.2,1.3 engine.cpp,1.8,1.9 model.cpp,1.3,1.4 residual.vcproj,1.8,1.9 scene.cpp,1.13,1.14 scene.h,1.9,1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list