Copyright © 2013-2017 MultiMedia Soft

GetMinMaxPeakLevelsForRange method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the minimum and maximum peak levels inside a range of the analyzed sound.

 

 

Syntax

 

[Visual Basic]

Public Function GetMinMaxPeakLevelsForRange (

nBeginPosInMs as Int32,

nEndPosInMs as Int32,

ByRef fPeakMin as Single,

ByRef fPeakMax as Single,

nWaveformType as enumWaveformTypes

) as enumWanErrorCodes


 

[C#]

public enumWanErrorCodes GetMinMaxPeakLevelsForRange (

Int32 nBeginPosInMs,

Int32 nEndPosInMs,

ref float fPeakMin,

ref float fPeakMax,

enumWaveformTypes nWaveformType

);


 

[C++]

public: enumWanErrorCodes GetMinMaxPeakLevelsForRange (

Int32 nBeginPosInMs,

Int32 nEndPosInMs,

float __gc *fPeakMin,

float __gc *fPeakMax,

enumWaveformTypes 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:

Mnemonic value

Value

Meaning

WAVEFORM_TYPE_LEFT

0

Peaks are detected inside the left channel

WAVEFORM_TYPE_RIGHT

1

Peaks are detected inside the right channel

WAVEFORM_TYPE_MIXED

2

Peaks are detected inside both left and right mixed channels

 

 

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