Retrieves the device that the channel is using.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. HSAMPLE handles may also be used.
Return Value
Type: Int32If successful, the device number is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
The return value may be BASS_NODEVICE (0x20000), if the channel is not associated with a device.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not a valid channel. |
Examples
bool isRecordingDevice = false; int device = Bass.BASS_ChannelGetDevice(stream); if (device != -1 && Utils.HighWord(device) == 1) isRecordingDevice = true;
See Also