This project has moved and is read-only. For the latest updates, please go here.

Play function can't release IO handle.

May 5, 2010 at 3:38 AM

I do it in this way:

AudioPlayer player = new AudioPlayer();

player.StartPosition = PositionToTimeSpan(waveControl1.LeftPosition);
player.EndPosition = PositionToTimeSpan(waveControl1.RightPosition);

But after play wave file. It didn't release IO handle, so I can't delete it in other process.

May 5, 2010 at 7:43 AM

do you dispose of your AudioPlayer after playback has finished?


May 5, 2010 at 7:49 AM

Waveout.disposed can't solve out my problem. I added inStream.close() and it's working.

public class AudioPlayer



public void Stop()
            inStream.Position = 0;


Thank mark.