Can someone please help me with this:
I've recently downloaded DirectX 9 SDK, with the new manged directx feature.
Now I'm building a MP3 player program and using the Audio class of the DirectX.AudioVideoPlayblack namespace.
The Audio class is a great class to play MP3 files. You can do this like this:
And do this everytime the user clicks the play-button.Code:Public WithEvents audio As Microsoft.DirectX.AudioVideoPlayback.Audio Public Sub PlaySong(MP3FileName) audio = audio.FromURL(MP3FileName) audio.Play() End Sub
The problem is, that this audio object just grows and grows as it does not close the files it opened with the FromURL() method.
The class has no method Close() or something and there is no property to determine the filenumber.
Please help me!!!




Reply With Quote