Copyright © 2011-2019 MultiMedia Soft

CallbackConvertFileDone delegate

Previous pageReturn to chapter overviewNext page

Remarks

 

Callback delegate invoked from a secondary thread during file conversion sessions started through a call to the the ConvertFile, ConvertFileRaw or ConvertAutomationExecute methods to notify about that the conversion of a single file was completed: this callback can be set through a call to the CallbackConvertFileDoneSet method.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

 

 

Syntax

 

[Visual Basic]

Public Delegate Sub CallbackConvertFileDone (

nFileIndex as Int16,

nResult as enumErrorCodes

)


 

[C#]

public delegate void CallbackConvertFileDone (

Int16 nFileIndex,

enumErrorCodes nResult

)


 

[C++]

public delegate void CallbackConvertFileDone (

Int16 nFileIndex,

enumErrorCodes nResult

)


 

Parameter

Description

 

 

nFileIndex

This parameter always assumes value 0 if the event is generated after a call to the ConvertFile or ConvertFileRaw methods

In case of a conversion automation session, started through the ConvertAutomationExecute method, this parameter represents the zero-based index of the list of sound files being converted.

nResult

The result of the conversion session.

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The conversion of the sound file was completed successfully.