AudioPlayerGetDeviceDefaultIndex Method |
Get the default output device index. This works when the mode is WASAPI, LineOut will return always 0.
Namespace:
CSAudioPlayer
Assembly:
CSAudioPlayer (in CSAudioPlayer.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax public int GetDeviceDefaultIndex(
Mode mode = Mode.WasapiOut
)
Public Function GetDeviceDefaultIndex (
Optional mode As Mode = Mode.WasapiOut
) As Integer
Dim instance As AudioPlayer
Dim mode As Mode
Dim returnValue As Integer
returnValue = instance.GetDeviceDefaultIndex(mode)
member GetDeviceDefaultIndex :
?mode : Mode
(* Defaults:
let _mode = defaultArg mode Mode.WasapiOut
*)
-> int
public int GetDeviceDefaultIndex(
Mode mode = Mode.WasapiOut
)
public function GetDeviceDefaultIndex(
mode : Mode
) : int
function GetDeviceDefaultIndex(mode);
Parameters
- mode (Optional)
- Type: CSAudioPlayerMode
Return Value
Type:
Int32See Also