So as I finally thought I managed to create a proper, basic LP-filter functionality with the dsp-module, there comes the FL Studio and crushes my dreams. So, pretty much all DAW’s seem to keep buffersize constant during playback, but not so with FL Studio. It has variable buffersize by default with plugins and that in turn makes glitches in my filter, which assumes that the buffer size stays the same during playback. It allows buffersize to be changed… but if it happens during the playback, there’ll be a glitch since the filter needs preparing and resetting each time buffersize is changed.
Any ideas how to overcome this? How do I change the IIR-filter buffersize without resetting it’s state and “last known sample” in order to prevent the glitches that happen? This feels like totally off-standard behaviour but Image Line justifies this by telling that the VST standard “makes it possible to change buffersize whenever wanted, so make your plugin work with it.”