Fix odd Sam and Max iMUSE crash. Thread syncronisation bug?
svn-id: r4256
This commit is contained in:
parent
12c2318c76
commit
ceb97152c7
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue