BASS.NET API for the Un4seen BASS Audio Library

BassMixBASS_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:

public static bool BASS_Mixer_ChannelGetMatrix(
	int handle,
	float[,] matrix


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).
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.

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.


Get the matrix of a stereo channel plugged into a quad mixer:
// 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