Pauses or resumes encoding on a 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_SetPaused( int handle, bool paused )
Parameters
- handle
- Type: SystemInt32
The encoder or channel handle... a HENCODE, HSTREAM, HMUSIC, or HRECORD. - paused
- Type: SystemBoolean
Paused?
Return Value
Type: BooleanIf no encoder has been started on the channel, is returned, otherwise is returned.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
When an encoder is paused, no sample data will be sent to the encoder "automatically". Data can still be sent to the encoder "manually" though, via the BASS_Encode_Write(Int32, IntPtr, Int32) function.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
See Also