[Scummvm-cvs-logs] SF.net SVN: scummvm:[43799] scummvm/trunk/sound/mods/maxtrax.cpp

nolange at users.sourceforge.net nolange at users.sourceforge.net
Sat Aug 29 14:44:51 CEST 2009


Revision: 43799
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43799&view=rev
Author:   nolange
Date:     2009-08-29 12:44:51 +0000 (Sat, 29 Aug 2009)

Log Message:
-----------
fix SFX not playing before music started

Modified Paths:
--------------
    scummvm/trunk/sound/mods/maxtrax.cpp

Modified: scummvm/trunk/sound/mods/maxtrax.cpp
===================================================================
--- scummvm/trunk/sound/mods/maxtrax.cpp	2009-08-29 11:56:59 UTC (rev 43798)
+++ scummvm/trunk/sound/mods/maxtrax.cpp	2009-08-29 12:44:51 UTC (rev 43799)
@@ -849,8 +849,10 @@
 	channel.isAltered = false;
 	channel.patch = &_patch[patch];
 	const int8 voiceIndex = noteOn(channel, note, (byte)volume, kPriorityNote);
-	if (voiceIndex >= 0)
+	if (voiceIndex >= 0) {
 		_voiceCtx[voiceIndex].stopEventTime = duration << 8;
+		Paula::startPaula();
+	}
 	return voiceIndex;
 }
 


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