Show / Hide Table of Contents

Delegate EncoderProcedure

User defined callback function to encode sample data.

Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.Enc.dll
Syntax
public delegate int EncoderProcedure(int Handle, int Channel, IntPtr Buffer, int Length, int MaxOut, IntPtr User);
Parameters
Int32 Handle

The encoder handle.

Int32 Channel

The channel that the encoder is set on.

IntPtr Buffer

Buffer containing the sample data on input, and containing the encoded data on output.

Int32 Length

The number of bytes in the buffer... -1 = the encoder is being freed (no data in the buffer).

Int32 MaxOut

The maximum amount of encoded data that can be placed in the buffer.

IntPtr User

The user instance data given when EncodeStart(Int32, String, EncodeFlags, EncoderProcedure, IntPtr) was called.

Returns
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.

Back to top Copyright © 2017 Mathew Sachin
Generated by DocFx