Naudio crashed issue when using PlaybackStopped event

89 Views Asked by At

I am using Naudio to play sound but some time I am getting error of crash error in method where reader is wavestram list

Can we use some different way?

void wout_PlaybackStopped(object sender, StoppedEventArgs e)
{
    foreach (WaveStream ws in readers)         
        ws.Dispose();

    readers.Clear();
}

Error details:

enter image description here

0

There are 0 best solutions below