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: then you have disposed it. memory usage does not go down in .net when you dispose something. that only happens when the garbage collector runs.
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: then you have disposed it. memory usage does not go down in .net when you dispose something. that only happens when the garbage collector runs.