BASS.NET API for the Un4seen BASS Audio LibraryENCODERPROC DelegateBASS.NET API for the Un4seen BASS Audio Library
User defined callback function to encode sample data.

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

public delegate int ENCODERPROC(
	int handle,
	int channel,
	IntPtr buffer,
	int length,
	int maxout,
	IntPtr user
)

Parameters

handle
Type: SystemInt32
The encoder handle.
channel
Type: SystemInt32
The channel that the encoder is set on.
buffer
Type: SystemIntPtr
Buffer containing the sample data on input, and containing the encoded data on output.
length
Type: SystemInt32
The number of bytes in the buffer... -1 = the encoder is being freed (no data in the buffer).
maxout
Type: SystemInt32
The maximum amount of encoded data that can be placed in the buffer.
user
Type: SystemIntPtr
The user instance data given when BASS_Encode_StartUser(Int32, String, BASSEncode, ENCODERPROC, IntPtr) was called.

Return Value

Type: Int32
The number of bytes of encoded data placed in buffer... -1 = stop encoding.
Remarks

If the encoder output exceeds the outmax value, then only the first outmax bytes should be delivered and the remainder retained. The function will be called again immediately to get the remainder.

See Also

Reference