T
Terry Olsen
I'm using DirectX to play mp3 files.
Private WithEvents Player As Audio = Nothing
Player = New Audio(Song, False)
Player.Play()
'.......
Player.StopWhenReady()
'.......
Player = Nothing
If I try to do anything to the file afterwards, I get an exception saying
the file is being used by another process. Even when i've loaded another
song. How can I release the file when i'm done playing it so that I can
rename it, or update it?
Thanks.
Private WithEvents Player As Audio = Nothing
Player = New Audio(Song, False)
Player.Play()
'.......
Player.StopWhenReady()
'.......
Player = Nothing
If I try to do anything to the file afterwards, I get an exception saying
the file is being used by another process. Even when i've loaded another
song. How can I release the file when i'm done playing it so that I can
rename it, or update it?
Thanks.