BASS_Encode_SetChannel
Moves an encoder (or all encoders on a channel) to another channel.
BOOL BASS_Encode_SetChannel(
DWORD handle,
DWORD channel
);
Parameters
handle | The encoder or channel handle... a HENCODE, HSTREAM, HMUSIC, or HRECORD.
|
channel | The channel to move the encoder(s) to... a HSTREAM, HMUSIC, or HRECORD.
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle or channel is not valid.
|
BASS_ERROR_FORMAT | The new channel's sample format is not the same as the old channel's.
|
Remarks
The new channel must have the same sample format (rate, channels, resolution) as the old channel, as that is what the encoder is expecting. A channel's sample format is available via BASS_ChannelGetInfo.
See also
BASS_Encode_GetChannel