Copyright © 2011-2023 MultiMedia Soft

OnVUMeterValueChange event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs whenever there is a change on the VU-Meter peak values: this event, generated every 15 milliseconds, can be useful if you need to implement your own VU-Meter graphical representation.

 

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

 

For details about using graphic bars refer to the How to perform custom feedbacks rendering using graphic bars section.

 

 

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

 

 

nLeftPeak

Number representing the peak value for the left channel: can assume values from 0 (no sound) to 32767 (max volume).

nRightPeak

Number representing the peak value for the right channel: can assume values from 0 (no sound) to 32767 (max volume).

If the sound is in Mono, the nLeftPeak and nRightPeak parameters assume the same value.