hotguac / jk-drive

Overdrive distortion LV2 plugin
1 stars 0 forks source link

Remove click from output when toggling plugin bypass #2

Closed hotguac closed 8 years ago

hotguac commented 8 years ago

The feed to the up sample routine is not continuous when the plug-in is bypassed producing a glitch (click) in the output. Need to flush the output buffers when deactivated and prime the input to the up sample routine with a block of zeroes.

hotguac commented 8 years ago

The input and output buffers are now flushed and the input buffer primed with silence to prevent audio left over when the plugin was bypassed from being output when the plugin is then enabled.