I'm using the WasapiLoopbackCapture to get the audio played on a system and visualize it.
When I playback music and exit the music player or press stop then the sound "hangs" (happens with VLC and Winamp, not Windows Media Player). It seems that the last soundbuffer just gets repeated.
While normal music playback it looks like there is sound coming from both applications (my application and the music player). Actually there isn't any sound coming from my application, if i mute it there is no output difference on my headphones, but my application
doesn't get any sound from the loopback.
This looks like this.
When pressing stop or exiting the music player the last soundbuffer continues to play over and over until i exit my application. Looking into the volume control you can see
. The sound is coming from my application.
I'm using Windows 7 x64.
How can i prevent this?
Here is a video
to better show you whats the issue