BASS_ChannelGetDevice
Retrieves the device that a channel is using.
DWORD BASS_ChannelGetDevice(
DWORD handle
);
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. HSAMPLE handles may also be used.
|
Return value
If successful, the device number is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel.
|
Remarks
Recording devices are indicated by the HIWORD of the return value being 1, when this function is called with a HRECORD channel.
The return value may be BASS_NODEVICE, if the channel is not associated with a device.
See also
BASS_ChannelSetDevice, BASS_GetDevice, BASS_SetDevice, BASS_RecordGetDevice, BASS_RecordSetDevice