Copyright © 2008-2019 MultiMedia Soft

VUMeterValueChange 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 or through graphic bars created by the GraphicBarsManager object.

For regular mono or stereo streams, peak levels are reported inside the nLeftPeak and nRightPeak parameters: in case you should need to retrieve peak levels or RMS (Root-Mean-Square) levels for each of the channels of a multi-channel audio stream, you could use the StreamPeakLevelsGet method.

 

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

 

 

Syntax

 

[Visual Basic]

VUMeterValueChange (

ByVal nLeftPeak as Integer,

ByVal nRightPeak as Integer

)


 

[C++]

void VUMeterValueChange (

short nLeftPeak,

short nRightPeak

);


 

 

Parameter

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.