Show / Hide Table of Contents

Delegate RecordProcedure

User defined callback function to process recorded sample data.

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

The recording Handle that the data is from.

IntPtr Buffer

The pointer to the Buffer containing the recorded sample data. The sample data is in standard Windows PCM format, that is 8-bit samples are unsigned, 16-bit samples are signed, 32-bit floating-point samples range from -1 to +1.

Int32 Length

The number of bytes in the Buffer.

IntPtr User

The User instance data given when RecordStart(Int32, Int32, BassFlags, RecordProcedure, IntPtr) was called.

Returns
Boolean

Return true to stop recording, and anything else to continue recording.

Remarks

RecordFree() should not be used to free the recording device within a recording callback function. Nor should ChannelStop(Int32) be used to stop the recording; return false to do that instead.

Back to top Copyright © 2017 Mathew Sachin
Generated by DocFx