BASS_Mixer_ChannelGetMatrix

Retrieves a source channel's mixing matrix, if it has one.

BOOL BASS_Mixer_ChannelGetMatrix(
    DWORD handle,
    void *matrix
);

Parameters

handleThe channel handle.
matrixLocation 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_HANDLEhandle is not a mixer source.
BASS_ERROR_NOTAVAILThe 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