BASS.NET API for the Un4seen BASS Audio LibraryBassMixBASS_Mixer_ChannelGetMatrix Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves a channel's mixing matrix, if it has one.

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

[DllImportAttribute("bassmix.dll", CharSet = CharSet.Unicode)]
public static bool BASS_Mixer_ChannelGetMatrix(
	int handle,
	float[,] matrix
)

Parameters

handle
Type: SystemInt32
The mixer source channel handle (which was add via BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannelEx(Int32, Int32, BASSFlag, Int64, Int64)) beforehand).
matrix
Type: SystemSingle
The 2-dimentional array (float[,]) where to write the matrix.

Return Value

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

For more details see BASS_Mixer_ChannelSetMatrix(Int32, Single). The array must be big enough to get the matrix.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not plugged into a mixer.
BASS_ERROR_NOTAVAILThe channel is not using matrix mixing.

Examples

Get the matrix of a stereo channel plugged into a quad mixer:
VB
' you must initialize the array size correctly before getting the matrix!
Dim matrixGet(4, 2) As Single
BassMix.BASS_Mixer_ChannelGetMatrix(streamA, matrixGet)
// you must initialize the array size correctly before getting the matrix!
float[,] matrixGet = new float[4,2];
BassMix.BASS_Mixer_ChannelGetMatrix(streamA, matrixGet);
See Also

Reference