workaround for #192

This commit is contained in:
derselbst 2017-08-22 17:20:00 +02:00
parent 6c3061cba3
commit fa3894c97f

View file

@ -2939,10 +2939,17 @@ fluid_synth_render_blocks(fluid_synth_t* synth, int blockcount)
fluid_rvoice_eventhandler_dispatch_all(synth->eventhandler);
#if 0
/* do not render more blocks than we can store internally */
maxblocks = fluid_rvoice_mixer_get_bufcount(synth->eventhandler->mixer);
if (blockcount > maxblocks)
blockcount = maxblocks;
#else
/* if we process more blocks, noteons will be timed incorrectly
* this bug seems to be design made, i.e. the current implementation requires to
* process all events from one block and then whatever we just processed. */
blockcount = 1;
#endif
for (i=0; i < blockcount; i++) {
fluid_sample_timer_process(synth);