I'm Trying NAudio in my project.
It seem that in Mp3FileReader buffer dispose function not work.
I use this scenario:
mp3_1 = New Mp3FileReader("FileAudio.MP3")
DSO1.Init(mp3_1)
DSO1.Play()
Then stop and dispose WaweOut and restart a new file with same routine.
After any stop and play, memory is loss.
Is this routine correct?
Rehards
Alex
Comments: I have try: mp3_1.close mp3_1.dispose But the memory used increases each time use new Mp3FileReader. It seem that the dispose function not releases all file stream. Cam you tell me the proper method? Regards Alex
It seem that in Mp3FileReader buffer dispose function not work.
I use this scenario:
mp3_1 = New Mp3FileReader("FileAudio.MP3")
DSO1.Init(mp3_1)
DSO1.Play()
Then stop and dispose WaweOut and restart a new file with same routine.
After any stop and play, memory is loss.
Is this routine correct?
Rehards
Alex
Comments: I have try: mp3_1.close mp3_1.dispose But the memory used increases each time use new Mp3FileReader. It seem that the dispose function not releases all file stream. Cam you tell me the proper method? Regards Alex