[Scummvm-cvs-logs] CVS: scummvm/scumm/imuse_digi dimuse.cpp,1.97,1.98

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Fri May 28 07:44:01 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm/imuse_digi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4176

Modified Files:
	dimuse.cpp 
Log Message:
Use the same volume and panning values when starting the sound as when
adjusting these values later. I don't know about the volume thing, but I've
noticed that new sounds would often play their first fraction of a second
in the right speaker only. This change should fix that.


Index: dimuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/imuse_digi/dimuse.cpp,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- dimuse.cpp	26 May 2004 17:03:31 -0000	1.97
+++ dimuse.cpp	28 May 2004 14:42:49 -0000	1.98
@@ -202,7 +202,7 @@
 				if (track->stream2) {
 					if (!track->started) {
 						track->started = true;
-						_vm->_mixer->playInputStream(&track->handle, track->stream2, false, track->vol / 1000, track->pan, -1, false);
+						_vm->_mixer->playInputStream(&track->handle, track->stream2, false, vol, pan, -1, false);
 					} else {
 						_vm->_mixer->setChannelVolume(track->handle, vol);
 						_vm->_mixer->setChannelBalance(track->handle, pan);





More information about the Scummvm-git-logs mailing list