Copyright © 2013-2017 MultiMedia Soft

PlaybackPositionSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Updates the playback position on the analyzer window and on the eventual waveform scroller object when the component is used in conjunction with a third-party multimedia library. The current playback position can be retrieved at a later time through the PlaybackPositionGet method.

 

The component doesn't come with playback capabilities so, in case the waveform analyzer should be used in conjunction with a multimedia player implemented through a component like our "Audio DJ Studio for .NET" or through third-party libraries like Leadtools Multimedia SDK, BASS, FMOD or through Microsoft's frameworks like Media Foundation and DirectShow, this method allows updating the current playback position through a vertical line: this call should be inserted inside a place where there is the possibility to obtain the current playback position from the third-party multimedia library, for example inside a timer or inside a callback function invoked by the third-party multimedia library itself.

 

 

Syntax

 

[Visual Basic]

Public Function PlaybackPositionSet (

nPosition as Int32

) as enumWanErrorCodes


 

[C#]

public enumWanErrorCodes PlaybackPositionSet (

Int32 nPosition

);


 

[C++]

public: enumWanErrorCodes PlaybackPositionSet (

Int32 nPosition

);


 

 

Parameter

Description

 

 

nPosition

Number representing the new playback position expressed in milliseconds.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumWanErrorCodes.ERR_WAN_NOERROR (0)

The method call was successful