Browse Source

Fix crash if processing too much without a control update

Signed-off-by: falkTX <falktx@falktx.com>
pull/18/head
falkTX 2 years ago
parent
commit
20d62751e0
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      plugins/Nekobi/nekobee-src/nekobee_voice_render.c

+ 1
- 1
plugins/Nekobi/nekobee-src/nekobee_voice_render.c View File

@@ -376,7 +376,7 @@ nekobee_voice_render(nekobee_synth_t *synth, nekobee_voice_t *voice,

osc_index += sample_count;

if (do_control_update) {
if (do_control_update || osc_index > MINBLEP_BUFFER_LENGTH - (XSYNTH_NUGGET_SIZE + LONGEST_DD_PULSE_LENGTH)) {
/* do those things should be done only once per control-calculation
* interval ("nugget"), such as voice check-for-dead, pitch envelope
* calculations, volume envelope phase transition checks, etc. */


Loading…
Cancel
Save