c# Stop Audio sound
Posted on 2011-02-20
In my background task I play sound continuosly:
private void bgw_DoWork(object sender, DoWorkEventArgs e)
myaudio = new Audio();
When I click cancel button, in the completed task:
private void bgw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
But the sound is not stopped. do you know the reason?