mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-18 05:31:02 +00:00
Fix bug when increasing polyphony
This commit is contained in:
parent
e21c56f6e7
commit
1578f9e02b
1 changed files with 1 additions and 1 deletions
|
@ -2767,7 +2767,7 @@ fluid_synth_update_polyphony_LOCAL(fluid_synth_t* synth)
|
|||
int i, new_polyphony;
|
||||
|
||||
new_polyphony = fluid_atomic_int_get (&synth->shadow_polyphony);
|
||||
if (synth->polyphony > synth->nvoice) {
|
||||
if (new_polyphony > synth->nvoice) {
|
||||
/* Create more voices */
|
||||
fluid_voice_t** new_voices = FLUID_REALLOC(synth->voice,
|
||||
sizeof(fluid_voice_t*) * new_polyphony);
|
||||
|
|
Loading…
Reference in a new issue