BASS.NET API for the Un4seen BASS Audio LibraryBassAsioBASS_ASIO_ChannelGetInfo Method (Boolean, Int32, BASS_ASIO_CHANNELINFO)BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on an Asio channel.

Namespace: Un4seen.BassAsio
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("bassasio.dll", CharSet = CharSet.Auto)]
public static bool BASS_ASIO_ChannelGetInfo(
	bool input,
	int channel,
	BASS_ASIO_CHANNELINFO info
)

Parameters

input
Type: SystemBoolean
Dealing with an input channel? = an output channel.
channel
Type: SystemInt32
The input/output channel number... 0 = first.
info
Type: Un4seen.BassAsioBASS_ASIO_CHANNELINFO
An instance of the BASS_ASIO_CHANNELINFO class to store the information at.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Remarks

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

Examples

Display the information of all channels:
VB
Dim info As New BASS_ASIO_CHANNELINFO()
Dim chan As Integer = 0
While True
  If Not BassAsio.BASS_ASIO_ChannelGetInfo(False, chan, info) Then
    Exit While
  End If
  Console.WriteLine(info.ToString())
  chan += 1
End While
BASS_ASIO_CHANNELINFO info = new BASS_ASIO_CHANNELINFO();
int chan = 0;
while (true)
{
    if (!BassAsio.BASS_ASIO_ChannelGetInfo(false, chan, info))
        break;
    Console.WriteLine( info.ToString() );
    chan++;
}
See Also

Reference