Moves an encoder (or all encoders on a channel) to another channel.
Namespace: Un4seen.Bass.AddOn.Enc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bassenc")] public static bool BASS_Encode_SetChannel( int handle, int channel )
Parameters
- handle
- Type: SystemInt32
The encoder or channel handle... a HENCODE, HSTREAM, HMUSIC, or HRECORD. - channel
- Type: SystemInt32
The channel to move the encoder(s) to... a HSTREAM, HMUSIC, or HRECORD.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
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. |
See Also