Copyright © 2006-2018 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 COMEventsEnable method.

 

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 RecorderApi_OnVUMeterValueChange ( _

ByVal nPeakLeft as Integer, _

ByVal nPeakRight as Integer _

)

 

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

 

Dim WithEvents RecorderApi As AudioSoundRecorderApi.AudioSoundRecorderApiObj


 

 

Event Data

 

Parameters

Description

 

 

nPeakLeft

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

nPeakRight

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.