PaulStoffregen / Audio

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

Multiple audio objects behave incorrectly with NULL input #465

Open h4yn0nnym0u5e opened 1 year ago

h4yn0nnym0u5e commented 1 year ago

For examples see fixes for AudioRecordQueue (PR#403), AudioEffectEnvelope (PR#444), AudioEffectFade (PR#464). Typically this is where the object contains time-dependent state internally, which is not updated as it should be when there is no received audio block (e.g. receiveReadOnly() returns NULL). Silence does not necessarily mean inactivity.