mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
fix SFX not playing before music started
svn-id: r43799
This commit is contained in:
parent
bc8770cafb
commit
0b5a32e99a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user