Copyright © 2006-2018 MultiMedia Soft

CallbackVuMeterValueChange delegate

Previous pageReturn to chapter overviewNext page

Remarks

 

Callback delegate invoked 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 callback can be set through a call to the CallbackVuMeterValueChangeSet method.

 

In case you should need to retrieve RMS (Root-Mean-Square) levels, 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.

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

 

 

Syntax

 

[Visual Basic]

Public Delegate Sub CallbackVuMeterValueChange (

nPeakLeft as Int16,

nPeakRight as Int16

)


 

[C#]

public delegate void CallbackVuMeterValueChange (

Int16 nPeakLeft,

Int16 nPeakRight

)


 

[C++]

public delegate void CallbackVuMeterValueChange (

Int16 nPeakLeft,

Int16 nPeakRight

)


 

Parameter

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.