Copyright © 2001-2019 MultiMedia Soft

SetSmoothingTimeOnSeekOps method

Previous pageReturn to chapter overviewNext page

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 or by sound card drivers not correctly cleaning the playback buffer as needed.

 

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 vice versa) 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 (no smoothing) to 500: higher or lower values will be automatically cut to the nearest supported value. The default value is 50 milliseconds.

 

 

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.