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

New Post: How to dispose MMDeviceEnumerator / MMDevice

$
0
0
I would like to keep getting the default audio endpoint but to prevent a memory leak I need to dispose of these objects.
Dim de As New MMDeviceEnumerator
Dim device As MMDevice = de.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia)
Can anyone suggest a solution?

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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