Copyright © 2006-2023 MultiMedia Soft

OnWaveformValueChange event

Previous pageReturn to chapter overviewNext page

Remarks

 

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

 

This event replaces the usage of the CallbackWaveformValueChange 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_REC_WAVEFORM_VALUE.

 

For further details about synchronization through Events see the How to synchronize the container application with the control tutorial.

 

 

Syntax

 

[Visual Basic 6]

Private Sub RecorderApi_OnWaveformValueChange ( _

ByVal nPeakMin as Integer, _

ByVal nPeakMax as Integer _

)

 

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

 

Dim WithEvents RecorderApi As AudioSoundRecorderApi.AudioSoundRecorderApiObj


 

 

Event Data

 

Parameter

Description

 

 

nPeakMin

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

nPeakMax

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