BASS_Mixer_ChannelSetMap

Sets a source channel's mixing matrix for a channel map.

BOOL BASS_Mixer_ChannelSetMap(
    DWORD handle,
    int *chanmap
);

Parameters

handleThe channel handle.
chanmapChannel map... pointer to an array of source channel indexes (0=first, -1=none) for each mixer output channel.

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.
BASS_ERROR_ILLPARAMchanmap contains an invalid channel index.

Remarks

See the matrix mixing documentation for examples.

See also

BASS_Mixer_ChannelGetMatrix, BASS_Mixer_ChannelSetMatrix, BASS_Mixer_StreamAddChannel