fix SFX not playing before music started

svn-id: r43799
This commit is contained in:
Norbert Lange 2009-08-29 12:44:51 +00:00
parent bc8770cafb
commit 0b5a32e99a

View File

@ -849,8 +849,10 @@ int MaxTrax::playNote(byte note, byte patch, uint16 duration, uint16 volume, boo
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;
}