BASS.NET API for the Un4seen BASS Audio Library

BassAsioBASS_ASIO_ChannelGetFormat Method

BASS.NET API for the Un4seen BASS Audio Library
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: BASSASIOFormat
If 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_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.
BASS_ASIO_FORMAT_UNKNOWNUnknown format, an error occured.

Remarks

ERROR CODEDescription
BASS_ERROR_INITBASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.
BASS_ERROR_ILLPARAMThe input and channel combination is invalid.

See Also

Reference