My audio plugin emits an harsh high frequency noise when it starts once every 6/7 times. It is a simple wavetable synthesiser with an exponential decay envelope. The wavetable is generated by reading a .wav file, and there should be no dangling pointers as I am using only unique_pointers.
My wavetable class is modelled on the juce tutorial and the envelope is modelled on the Audio Programming Book examples
Apart from that noise on start-up the plugin works smoothly.
I know it is like searching a needle into a haystack but which other things should I keep in mind while searching for my bug?
In the plugin editor I have many images that I get as ImageCache from binary data. Could that be the problem?
P.s. I am not making the #1 beginner mistake
Thanks for any tip.