BASS_ASIO_ChannelSetFormat

Retrieves a channel's sample format.

DWORD BASS_ASIO_ChannelGetFormat(
    BOOL input,
    DWORD channel
);

Parameters

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

Return value

If an error occurs, -1 is returned, use BASS_ASIO_ErrorGetCode to get the error code. If successful, one of the following is returned.
BASS_ASIO_FORMAT_16BIT16-bit integer.
BASS_ASIO_FORMAT_24BIT24-bit integer.
BASS_ASIO_FORMAT_32BIT32-bit integer.
BASS_ASIO_FORMAT_FLOAT32-bit floating-point.
BASS_ASIO_FORMAT_DSD_LSBDSD with LSB first.
BASS_ASIO_FORMAT_DSD_MSBDSD with MSB first.

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_ChannelSetFormat, BASS_ASIO_ChannelGetInfo, ASIOPROC callback