Remarks
Sets the smoothing time applied during seeking and looping operations in order to avoid clicks on the speakers caused by sudden volume level changes
.
With certain kind of speakers sudden volume level changes when moving the playback position from a position where the volume level is low to a position where the volume level is high (and viceversa) may result in audible popping and/or clicks. Applying a small volume fade could sometime help eliminating the issue.
Syntax
[Visual Basic]
control.SetSmoothingTimeOnSeekOps (
nPlayer as Integer,
nSmoothTime as Long
) as enumErrorCodes
|
|
[C++]
short control.SetSmoothingTimeOnSeekOps (
short nPlayer,
long nSmoothTime
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the involved player
|
nSmoothTime
|
The smoothing time, expressed in milliseconds, required to perform a smooth fade-out/fade-in after calling a method that will move the current playback position (like SeekSound, RewindSound or ForwardSound) or when a loop occurs.
Accepted values are from 0 (default value, no smoothing) to 500: higher or lower values will be automatically cut to the nearest supported value.
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful.
|
|