PaulStoffregen / Audio

Teensy Audio Library
http://www.pjrc.com/teensy/td_libs_Audio.html
1.1k stars 408 forks source link

effect_granular.cpp AudioEffectGranular::beginFreeze_int : problem in if statement #471

Open messinm opened 9 months ago

messinm commented 9 months ago

void AudioEffectGranular::beginFreeze_int(int grain_samples) { __disable_irq(); grain_mode = 1; if (grain_samples < max_sample_len) { freeze_len = grain_samples; } else { freeze_len = grain_samples; }

The assignment in else clause should be freeze_len = max_sample_len ?