Fix bug when increasing polyphony

This commit is contained in:
David Henningsson 2010-08-04 20:56:36 +00:00
parent e21c56f6e7
commit 1578f9e02b

View file

@ -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);