I have developed a simple VST plugin. The plugin has an internal buffer with audio samples which should be cleared if audio stream gets interrupted.
Now if I use this plugin in some media player (like Foobar with VST wrapper plugin) and I use the seek bar to skip to some position in the song or I switch to a new song, I still hear tail of previous audio.
Is there any VST callback or something that gets called to notify plugin about such stream interrupts?