Copyright © 2005-2019 MultiMedia Soft

SilenceDetectionStateChange event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs during playback of a sound stream having realtime silence detection enabled through the SilenceDetectionRealTimeEnable method.

 

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

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

 

 

Syntax

 

[Visual Basic]

Public Event SilenceDetectionStateChange As SilenceDetectionStateChangeEventHandler


 

[C#]

public event SilenceDetectionStateChangeEventHandler SilenceDetectionStateChange;


 

[C++]

public: __event SilenceDetectionStateChangeEventHandler SilenceDetectionStateChange;


 

 

Event Data

 

The event handler receives an argument of type SilenceDetectionStateChangeEventArgs having the following parameters:

 

Parameters

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

bIsSilent

Boolean value specifying detection of silent data or of audible data.

Supported values are the following:

Mnemonic constant

Meaning

false

Audible sound data has been detected

true

Silent sound data has been detected

nPositionInMs

Number representing the position inside the sound stream, expressed in milliseconds, where the silence threshold was crossed.