mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
Fix odd Sam and Max iMUSE crash. Thread syncronisation bug?
svn-id: r4256
This commit is contained in:
parent
12c2318c76
commit
ceb97152c7
@ -4411,6 +4411,13 @@ void IMuseGM::part_changed(Part *part, byte what)
|
||||
if (!(mc = part->_mc->gm()))
|
||||
return;
|
||||
|
||||
if (part->_player == NULL) { /* No player, so dump phantom channel */
|
||||
part->_mc = NULL;
|
||||
mc->_part = NULL;
|
||||
memset(mc->_actives, 0, sizeof(mc->_actives));
|
||||
return;
|
||||
}
|
||||
|
||||
if (what & pcMod)
|
||||
midiPitchBend(mc->_chan,
|
||||
clamp(part->_pitchbend + part->_detune_eff +
|
||||
|
Loading…
x
Reference in New Issue
Block a user