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?