OnConvertFilePerc event |
|
Remarks
Occurs during conversion of a sound file to inform about the advancement percentage.
The sound file conversion may have been started through the ConvertFile, ConvertFileRaw or ConvertAutomationExecute methods.
This event replaces the usage of the CallbackConvertFilePerc delegate and is only intended for usage with applications developed using Visual Basic 6 (which results unreliable when dealing with delegates and callbacks) and, in order to be enabled, requires a call to the COMEventEnable method with the nEventType parameter set to EVENT_TYPE_EDT_CONVERT_PERC.
For further information about sound files conversion see the How to convert format of sound files tutorial.
Syntax
[Visual Basic 6] Private Sub EditorApi_OnConvertFilePerc ( _ ByVal nPercentage As Integer, _ ByVal nFileIndex As Integer _ )
where "EditorApi" is declared in Visual Basic 6 code as:
Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj |
Event Data
Parameters |
Description |
|
|
nPercentage |
Number representing the current percentage of advancement for the file conversion. |
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. |