PaulStoffregen / Audio

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

Fix stuck AudioEffectFade #464

Open h4yn0nnym0u5e opened 1 year ago

h4yn0nnym0u5e commented 1 year ago

Another instance of an audio object which did nothing when a NULL block arrives, even when internal state is time-dependent...

This fix keeps the fade process going even if NULL audio blocks are passed in, so you can e.g. preset a fade to a known value before starting its input. Also traps a potential divide-by-zero error if a fade of 0.0 milliseconds is requested.