Retrieves a channel's sample rate.

double BASS_ASIO_ChannelGetRate(
    BOOL input,
    DWORD channel


inputDealing with an input channel? FALSE = an output channel.
channelThe input/output channel number... 0 = first.

Return value

If successful, the channel's sample rate is returned (0 = device rate), else -1 is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_INITBASS_ASIO_Init has not been successfully called.
BASS_ERROR_ILLPARAMThe input and channel combination is invalid.

See also

BASS_ASIO_ChannelSetRate, BASS_ASIO_GetRate