Copyright © 2011-2023 MultiMedia Soft

OnEditPerc event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs during an editing session in order to notify the container application about editing advancement.

The editing session could have been started through one of the following methods: ReduceToRange, DeleteRange, InsertSilence, RemoveSilence, TrimSilence, Effects.VolumeFlatApply, Effects.VolumeSlidingApply, Effects.VolumeAutomationApply, Effects.DirectXApply, Effects.EqualizerApply, Effects.CustomDspApply, Effects.VstApply, Effects.TempoApply, Effects.PlaybackRateApply, Effects.PitchApply, Effects.ReverseApply, Effects.FilterApply, Effects.DeNoiseFilterApply, Effects.DeClickFilterApply, Effects.NormalizationSimpleApply, Effects.NormalizationAdvancedApply, Effects.DcOffsetRemovalApply.

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

 

Syntax

 

[Visual Basic 6]

Private Sub EditorApi_OnEditPerc ( _

ByVal nPercentage As Integer, _

ByVal nCommand As enumSoundEditCommands _

)

 

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

 

Dim WithEvents EditorApi As AudioSoundEditorApi.AudioSoundEditorApiObj


 

 

Event Data

 

Parameters

Description

 

 

nPercentage

Number representing the percentage of advancement for the given operation.

nCommand

Number representing the identifier of the sound editing command

Supported values are the following:

Mnemonic Value

Value

Meaning

SOUND_EDIT_CMD_REDUCE_TO_RANGE

0

A call to the ReduceToRange method started the editing session.

SOUND_EDIT_CMD_DELETE_RANGE

1

A call to the DeleteRange method started the editing session.

SOUND_EDIT_CMD_INSERT_SILENCE

2

A call to the InsertSilence method started the editing session.

SOUND_EDIT_CMD_APPLY_VOLUME_FLAT

3

A call to the Effects.VolumeFlatApply method started the editing session.

SOUND_EDIT_CMD_APPLY_VOLUME_SLIDING

4

A call to the Effects.VolumeSlidingApply method started the editing session.

SOUND_EDIT_CMD_APPLY_VOLUME_AUTOMATION

5

A call to the Effects.VolumeAutomationApply method started the editing session.

SOUND_EDIT_CMD_APPLY_DMO

6

A call to the Effects.DirectXApply method started the editing session.

SOUND_EDIT_CMD_APPLY_EQUALIZER

7

A call to the Effects.EqualizerApply method started the editing session.

SOUND_EDIT_CMD_APPLY_CUSTOM_DSP

8

A call to the Effects.CustomDspApply method started the editing session.

SOUND_EDIT_CMD_APPLY_VST

9

A call to the Effects.VstApply method started the editing session.

SOUND_EDIT_CMD_APPLY_TEMPO

10

A call to the Effects.TempoApply method started the editing session.

SOUND_EDIT_CMD_APPLY_PLAYBACKRATE

11

A call to the Effects.PlaybackRateApply method started the editing session.

SOUND_EDIT_CMD_APPLY_PITCH

12

A call to the Effects.PitchApply method started the editing session.

SOUND_EDIT_CMD_APPLY_REVERSE

13

A call to the Effects.ReverseApply method started the editing session.

SOUND_EDIT_CMD_APPLY_REMOVE_SILENCE

14

A call to the RemoveSilence method started the editing session.

SOUND_EDIT_CMD_APPLY_FILTER

15

A call to the Effects.FilterApply method started the editing session.

SOUND_EDIT_CMD_APPLY_DENOISE

16

A call to the Effects.DeNoiseFilterApply method started the editing session.

SOUND_EDIT_CMD_APPLY_DECLICK

17

A call to the Effects.DeClickFilterApply method started the editing session.

SOUND_EDIT_CMD_APPLY_NORMALIZE_PEAK

18

A call to the Effects.NormalizationSimpleApply method started the editing session.

SOUND_EDIT_CMD_APPLY_NORMALIZE_TARGET

19

A call to the Effects.NormalizationAdvancedApply method started the editing session.

SOUND_EDIT_CMD_APPLY_DC_OFFSET_REMOVAL

20

A call to the Effects.DcOffsetRemovalApply method started the editing session.

SOUND_EDIT_CMD_APPLY_VOCAL_REMOVE

21

A call to the Effects.VocalRemovalApply method started the editing session.

SOUND_EDIT_CMD_TRIM_SILENCE

22

A call to the TrimSilence method started the editing session.