GetMinMaxPeakLevelsForRange method |
|
Remarks
Obtains the minimum and maximum peak levels inside a range of the recorded sound.
Syntax
[Visual Basic] control.GetMinMaxPeakLevelsForRange ( nBeginPosInMs as Long, nEndPosInMs as Long, fPeakMin as Single, fPeakMax as Single, nWaveformType as enumWaveformType ) as enumWanErrorCodes |
[C++] short control.GetMinMaxPeakLevelsForRange ( long nBeginPosInMs, long nEndPosInMs, float *fPeakMin, float *fPeakMax, short nWaveformType ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nBeginPosInMs |
Range start position, expressed in milliseconds |
||||||||||||
nEndPosInMs |
Range end position, expressed in milliseconds |
||||||||||||
fPeakMin |
Reference that, after returning from the method call, will contain the minimum peak level, expressed in percentage |
||||||||||||
fPeakMax |
Reference that, after returning from the method call, will contain the maximum peak level, expressed in percentage |
||||||||||||
nWaveformType |
The type of waveform, related to the sound's channels. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumWanErrorCodes.ERR_WAN_NOERROR (0) |
The method call was successful |