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.17.5
Syntax
[DllImportAttribute("bassmix")] 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: BooleanIf 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 CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not plugged into a mixer. |
BASS_ERROR_NOTAVAIL | The channel is not using matrix mixing. |
Examples
// 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