SilenceDetectionRealTimeEnable method |
|
Remarks
Enables/disables realtime silence detection during sound playback. Parameters involved in realtime silence detection can be modified through the SilenceDetectionRealTimeParamsSet method.
This method doesn't work with sounds with more than 2 channels (5.1 or 7.1) or if the EnableMixingFeatures property has been set to "false".
For further details about silence detection management see the How to detect silent portions of sound files tutorial.
Syntax
[Visual Basic] Public Function SilenceDetectionRealTimeEnable ( nPlayerIndex as Int16, bEnable as Boolean ) as enumErrorCodes |
[C#] public enumErrorCodes SilenceDetectionRealTimeEnable ( Int16 nPlayerIndex, bool bEnable ); |
[C++] public: enumErrorCodes SilenceDetectionRealTimeEnable ( Int16 nPlayerIndex, bool bEnable ); |
Parameter |
Description |
||||||
|
|
||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
||||||
bEnable |
Boolean value that specifies if realtime silence detection must be enabled or not. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |