Retrieves a channel's sample format.
Namespace: Un4seen.BassAsio
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bassasio")] public static BASSASIOFormat BASS_ASIO_ChannelGetFormat( bool input, int channel )
Parameters
- input
- Type: SystemBoolean
Dealing with an input channel? = an output channel. - channel
- Type: SystemInt32
The input/output channel number... 0 = first.
Return Value
Type: BASSASIOFormatIf an error occurs, -1 (BASS_ASIO_FORMAT_UNKNOWN) is returned, use BASS_ASIO_ErrorGetCode to get the error code.
If successful, one of the following is returned (see BASSASIOFormat):
BASS_ASIO_FORMAT_16BIT | 16-bit integer. |
BASS_ASIO_FORMAT_24BIT | 24-bit integer. |
BASS_ASIO_FORMAT_32BIT | 32-bit integer. |
BASS_ASIO_FORMAT_FLOAT | 32-bit floating-point. |
BASS_ASIO_FORMAT_DSD_LSB | DSD with LSB first. |
BASS_ASIO_FORMAT_DSD_MSB | DSD with MSB first. |
BASS_ASIO_FORMAT_UNKNOWN | Unknown format, an error occured. |
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_INIT | BASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called. |
BASS_ERROR_ILLPARAM | The input and channel combination is invalid. |
See Also