Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Memory used by Startrecording function

$
0
0
Hello,

I use this code in vb.net :
    If Micro Is Nothing Then
        Micro = New WaveIn
        Micro.BufferMilliseconds = 50
        Micro.WaveFormat = New WaveFormat(8000, 1)
        Dim recordingFormat As New WaveFormat(8000, 1)
        Micro.NumberOfBuffers = 1
        Micro.StartRecording()
    End If
When I looked at the memory space used by my application, I see that this space is permanently increasing (+8K every sec).
My opinion is that the buffer is not deleted+written at each cycle but everything is recorded in memory.

Is there any solution to prevent this phenomena ?

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>