mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-01 15:10:43 +00:00
workaround for #192
This commit is contained in:
parent
6c3061cba3
commit
fa3894c97f
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue