Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Parameters
- device
- Type: SystemInt32
The device to get the information of... 0 = first. - info
- Type: Un4seen.BassBASS_DEVICEINFO
An instance of the BASS_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.
ERROR CODE | Description |
---|---|
BASS_ERROR_DEVICE | The device number specified is invalid. |
Platform-specific
On Linux, a "Default" device is hardcoded to device number 1, which uses the default output set in the ALSA config, and the real devices start at number 2. That is also the case on Windows when the BASS_CONFIG_DEV_DEFAULT option is enabled (default).
On OSX, the BASS_DEVICES_AIRPLAY flag can be used in the device paramater to enumerate Airplay receivers instead of soundcards. A shared buffer is used for the Airplay receiver name information, which gets overwritten each time Airplay receiver information is requested, so it should be copied if needed. The BASS_CONFIG_AIRPLAY config option can be used to change which of the receiver(s) are used.
BASS_DEVICEINFO info = new BASS_DEVICEINFO(); for (int n=0; Bass.BASS_GetDeviceInfo(n, info); n++) { Console.WriteLine(info.ToString()); }