Fix odd Sam and Max iMUSE crash. Thread syncronisation bug?

svn-id: r4256
This commit is contained in:
James Brown 2002-05-09 18:03:07 +00:00
parent 12c2318c76
commit ceb97152c7

View File

@ -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 +