Copyright © 2011-2018 MultiMedia Soft

OnConvertFilePerc event

Previous pageReturn to chapter overviewNext page



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 COMEventsEnable method.


For further information about sound files conversion see the How to convert format of sound files tutorial.





[Visual Basic 6]

Private Sub EditorApi_OnConvertFilePerc ( _

ByVal nPercentage As Integer, _

ByVal nFileCounter As Integer _



where "EditorApi" is declared in Visual Basic 6 code as:


Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj



Event Data







Number representing the current percentage of advancement for the file conversion.


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.