I probably ask too many questions, but as I work on the plugin, one problem follows from another. I have created a compressor that works correctly, but there is one critical issue. Sometimes it causes the sound to disappear throughout the project. Moreover, this does not happen every time, but only from time to time. If somewhere in the project another similar plug-in appears, the sound disappears with 100% probability.
Has anyone faced such a problem?
I have a method in the plugin that calculates the compression. At the very beginning, it checks:
if(threshold < 0)
if true, then compression calculation starts. Samples are received from the buffer by the method:
Do you know how to fix this bug? Or maybe you can tell me which way to dig to find the error?