Popping sound when adding/removing custom dsp from EventInstance

Hello! I’m trying to add and remove custom dsps from an EventInstance, and it’s working fine except for a weird “pop” sound that plays when the dsp is added or removed. I couldn’t figure out how to get rid of this noise. Here’s the function I’m using to add the dsp
and the function i’m using to remove the dsp

This is expected when adding/removing a DSP (thought it may be more audible with some DSP effects than others) as the sudden change in signal, especially when also immediately adjusting the volume with setWetDryMix(), will cause a slight pop.

The easiest way to work around this would be to add your DSP with same volume and post-wet set to 0 - i.e. Dsp.setWetDryMix(1.0f, 0.0f, 1.0f);, and then quickly ramp to the desired wet/dry mix. If you’re using Unity, a coroutine would be an easy way to implement this.