BASS_Mixer_ChannelGetMatrix
Retrieves a channel's mixing matrix, if it has one.
BOOL BASS_Mixer_ChannelGetMatrix(
DWORD handle,
void *matrix
);
Parameters
handle | The channel handle.
|
matrix | Location to write the matrix.
|
Return value
If successful, a TRUE is returned, else FALSE is returned. Use
BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | The channel is not plugged into a mixer.
|
BASS_ERROR_NOTAVAIL | The channel is not using matrix mixing.
|
Example
Get the matrix of a stereo channel plugged into a quad mixer.
float matrix[4][2]; // 4x2 array to receive the matrix
BASS_Mixer_ChannelGetMatrix(handle, matrix); // get the matrix
See also
BASS_Mixer_ChannelSetMatrix,
BASS_Mixer_StreamAddChannel,
BASS_Mixer_StreamAddChannelEx