Copyright © 2005-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]

Public Function SetSmoothingTimeOnSeekOps (

nPlayerIndex as Int16,

nSmoothTime as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes SetSmoothingTimeOnSeekOps (

Int16 nPlayerIndex,

Int32 nSmoothTime

);


 

[C++]

public: enumErrorCodes SetSmoothingTimeOnSeekOps (

Int16 nPlayerIndex,

Int32 nSmoothTime

);


 

 

Parameter

Description

 

 

nPlayerIndex

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.NOERROR (0)

The method call was successful.