Initializing play indexes

This commit is contained in:
Edgar 2022-07-16 12:03:20 -04:00
parent 67ada1add1
commit cea9d5d42b
1 changed files with 2 additions and 0 deletions

View File

@ -1713,6 +1713,7 @@ TSFDEF void tsf_note_on(tsf* f, int preset_index, int key, float vel)
}
voice = &f->voices[f->voiceNum - 4];
voice[1].playingPreset = voice[2].playingPreset = voice[3].playingPreset = -1;
voice[1].playIndex = voice[2].playIndex = voice[3].playIndex = -1;
}
voice->region = region;
@ -1799,6 +1800,7 @@ TSFDEF int tsf_note_on_fast(tsf* f, int preset_index, int key, float vel)
}
voice = &f->voices[f->voiceNum - 4];
voice[1].playingPreset = voice[2].playingPreset = voice[3].playingPreset = -1;
voice[1].playIndex = voice[2].playIndex = voice[3].playIndex = -1;
}
voice->region = region;