oops, real fix
This commit is contained in:
parent
046680c503
commit
4542235dac
@ -139,7 +139,7 @@ void bw_voice_alloc(const bw_voice_alloc_opts *BW_RESTRICT opts, bw_note_queue *
|
|||||||
int v = ev->note;
|
int v = ev->note;
|
||||||
for (BW_SIZE_T j = 0; j < n_voices; j++) {
|
for (BW_SIZE_T j = 0; j < n_voices; j++) {
|
||||||
int n = opts->get_note(voices[j]);
|
int n = opts->get_note(voices[j]);
|
||||||
if (!queue->status[n].pressed && (k < 0 || (opts->priority == bw_voice_alloc_priority_low ? n > v : n < v))) {
|
if (!queue->status[n].pressed && (!found || (opts->priority == bw_voice_alloc_priority_low ? n > v : n < v))) {
|
||||||
v = n;
|
v = n;
|
||||||
k = j;
|
k = j;
|
||||||
found = 1;
|
found = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user