BASS.NET API for the Un4seen BASS Audio LibraryBassEncBASS_Encode_SetPaused Method BASS.NET API for the Un4seen BASS Audio Library
Pauses or resumes encoding on a channel.

Namespace: Un4seen.Bass.AddOn.Enc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("bassenc.dll", CharSet = CharSet.Auto)]
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: Boolean
If no encoder has been started on the channel, is returned, otherwise is returned.

Return Value

Type: Boolean
If 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 CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

See Also

Reference