UtilNAudioGetDefaultSoundRenderDevice Method
Gets the default sound render device.
Namespace: DevCase.ThirdParty.NAudioAssembly: DevCase.net48.ThirdParty.NAudio (in DevCase.net48.ThirdParty.NAudio.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static MMDevice GetDefaultSoundRenderDevice(
Role role
)
Public Shared Function GetDefaultSoundRenderDevice (
role As Role
) As MMDevice
Dim role As Role
Dim returnValue As MMDevice
returnValue = UtilNAudio.GetDefaultSoundRenderDevice(role)
public:
static MMDevice^ GetDefaultSoundRenderDevice(
Role role
)
static member GetDefaultSoundRenderDevice :
role : Role -> MMDevice
No code example is currently available or this language may not be supported.
- role Role
-
Specifies the device role.
MMDevice
The resulting
MMDevice.
Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:
NAudio
This is a code example.
No code example is currently available or this language may not be supported.
Dim device As MMDevice = GetDefaultSoundRenderDevice(Role.Multimedia)
Console.WriteLine($"{NameOf(device.FriendlyName)}: {device.FriendlyName}, {NameOf(device.DeviceFriendlyName)}: {device.DeviceFriendlyName}, {NameOf(device.State)}: {device.State}")
Dim output As New WasapiOut(device, shareMode:=AudioClientShareMode.Shared, useEventSync:=False, latency:=0)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.