Copyright © 2001-2019 MultiMedia Soft

SilencePositionAvailable event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when the control has completed the detection of silent portions at the start and end of a loaded song.

 

Silence detection is performed automatically if the SilenceDetectionOnPlayerLoadAutoSet method has been previously called or on-demand after a call to the SilenceDetectionOnPlayerRequest method.

 

For further details about silence detection management see the How to detect silent portions of sound files tutorial.

 

 

Syntax

 

[Visual Basic]

SilencePositionAvailable (

ByVal nPlayer as Integer,

ByVal nInitialSilencePos as Long,

ByVal nFinalSilencePos as Long

)


 

[C++]

void SilencePositionAvailable (

short nPlayer,

long nInitialSilencePos,

long nFinalSilencePos

);


 

 

Parameters

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nInitialSilencePos

Number representing the position in milliseconds where the sound level is higher than the initial threshold. If no sound has been detected, due to the threshold level being higher respect to existing sound, this parameter is set to -1.

nFinalSilencePos

Number representing the position in milliseconds where the sound level is lower than the final threshold. If no sound has been detected, due to the threshold level being higher respect to existing sound, this parameter is set to -1.