Prosody generic: API: sm_get_channel_ix
Prototype Definition
int sm_get_channel_ix(tSMChannelId channel)
Parameters
- channel
-
The channel whose index value is to be returned.
Description
Converts a channel identifier to a integer index unique to that
channel.
The index returned is in the range 0 <= index < (256*32) and
is unique only between channels on the same card. Note that
this function is provided solely to implement backward
compatibility with the pre-V6 API, and will be removed when
pre-V6 backward compatibility support is withdrawn.
Returns
Channel index value (greater than or equal to zero)
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
This function is part of the Prosody generic API.