ILMACallback Interface

Interface Properties:

 

Type

Name

Description

IUnknown

CallbackObj2

(Write-only) Sets the callback object pointer.

If not NULL, the CallbackProc method of this interface will be called with every audio buffer.

Set to NULL (or to "Nothing" in VB) if you do not wish to receive notifications anymore. (For example, before you delete (release) the callback object interface).

There are two types of callbacks you can set:
- ILMAUserCallback uses variants, while
- ILMAUserCallback2 uses a pointer to the data.

VB 6.0 or earlier users should use a ILMAUserCallback interface, while C# and VB.NET users should use a ILMAUserCallback2 interface.

C/C++ users can use either interface.

VARIANT_BOOL

CallInSameThread

Enables or disables the calling of the CallbackProc notifications in the same thread that set the ReceiveProcObj property. The default value is VARIANT_TRUE.

 

Possible values are:

 

 

Value

Meaning

 

 

VARIANT_TRUE

Call the notifications in the same thread that set the callback. This reduces the performance and requires the application to process messages, otherwise the callback will not get called. It is the default and is required for platforms that have problem with multithreading. VB 6.0 and dotnet applications should use this mode.

 

 

VARIANT_FALSE

Call the notifications in any thread of the process. Use this setting for best performance in platforms that can handle this. This is the recommended mode for C/C++ applications.

double

CurrentPosition

[read-only] Use this property to get the current position (in seconds) of the current sample passed to the callback. It is recommended you call this property to get the current position from inside CallbackProc rather than trying to get the current position from the graph or LTMM object.