Copyright © 2011-2016 MultiMedia Soft

OnPercentage event

Previous pageReturn to chapter overviewNext page

Remarks

 

Notifies the container application about the percentage of advancement of lengthy operations like loading, exporting, waveform analysis, etc.

This event replaces the usage of the CallbackPercentage 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.

 

 

Syntax

 

[Visual Basic 6]

Private Sub EditorApi_OnPercentage ( _

ByVal nOperation as enumOperationsWithPercentage, _

ByVal nPercentage as Integer _

)

 

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

 

Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj


 

 

Event Data

 

Parameters

Description

 

 

nOperation

Number representing the identifier of the operation raising the notification.

Supported values are the following:

Mnemonic Value

Value

Meaning

OPERATION_WAVE_ANALYSIS

0

The operation is a waveform analysis started through the WaveformAnalyzer.AnalyzeFullSound method.

OPERATION_SOUND_UPLOAD_PERC

1

The operation is a sound file upload session started through the RequestUploadSessionToFTP or RequestUploadFileToFTP methods.

OPERATION_SOUND_LOADING

2

The operation is a sound loading started through one of the following methods: LoadSound, LoadSoundEncrypted, LoadSoundFromClipboard, LoadSoundFromEditingSession, LoadSoundFromMemory, LoadSoundFromRawFile, LoadSoundFromRawMemory, LoadSoundFromRecordingSession.

OPERATION_SOUND_EXPORT

3

The operation is a sound export session started through the ExportToFile method.

OPERATION_SILENCE_DETECTION

4

The operation is a silence detection session started through the SilencePositionsDetect method.

OPERATION_APPEND_AUTOM_TOTAL

5

The operation is an append automation session started through a call to the AppendAutomationExecute method to notify about the overall percentage of advancement; for single files being appended the involved callback is the CallbackAppendAutomationFilePerc delegate.

OPERATION_MIX_AUTOM

6

The operation is a mixing automation session started through the MixAutomationExecute method.

OPERATION_AUDIO_EXTRACT

7

The operation is an extraction of the audio track from a video clip started through the ExtractAudioFromVideoFile method.

OPERATION_JOIN_SOUNDS

8

The operation is a joining of two mono sounds started through the JoinFilesFromDisk method.

OPERATION_SOUND_COMPOSER

9

The operation is a sound composer session started through a call to the SoundComposer.SessionComposeItems method

OPERATION_SPECTRAL_ANALYSIS

10

The operation is a spectral analysis

nPercentage

Number representing the percentage of advancement for the given operation.