[Scummvm-cvs-logs] CVS: scummvm/sword1 sound.cpp,1.49,1.50

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Fri Aug 26 05:53:38 CEST 2005


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29488

Modified Files:
	sound.cpp 
Log Message:
Implement looping sounds. This should fix bug #1273741, hopefully without
causing any problems. (I assume either the game scripts or the engine will
make sure that looped sounds are stopped.)


Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sound.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- sound.cpp	10 Aug 2005 12:42:56 -0000	1.49
+++ sound.cpp	26 Aug 2005 12:50:54 -0000	1.50
@@ -166,6 +166,8 @@
 						flags = Audio::Mixer::FLAG_UNSIGNED;
 					if (READ_LE_UINT16(sampleData + 0x16) == 2)
 						flags |= Audio::Mixer::FLAG_STEREO;
+					if (_fxList[elem->id].type == FX_LOOP)
+						flags |= Audio::Mixer::FLAG_LOOP;
 					_mixer->playRaw(&elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan);
 			}
 		} else





More information about the Scummvm-git-logs mailing list