Retrieves information on a Wasapi device (endpoint).
Namespace: Un4seen.BassWasapi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- device
- Type: SystemInt32
The device to get the information of... 0 = first. - info
- Type: Un4seen.BassWasapiBASS_WASAPI_DEVICEINFO
An instance of the BASS_WASAPI_DEVICEINFO class to store the information at.
Return Value
Type: BooleanIf successful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Note: Input (capture) devices can be determined by evaluating the flags member (which must be either BASS_DEVICE_INPUT or BASS_DEVICE_LOOPBACK).
ERROR CODE | Description |
---|---|
BASS_ERROR_WASAPI | WASAPI is not available. |
BASS_ERROR_DEVICE | The device number specified is invalid. |
Examples
BASS_WASAPI_DEVICEINFO info = new BASS_WASAPI_DEVICEINFO(); for (int n=0; BassWasapi.BASS_WASAPI_GetDeviceInfo(n, info); n++) { Console.WriteLine(info.ToString()); }
See Also