PlaybackPositionSet method |
|
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 "Active DJ Studio" ActiveX control or through third-party libraries like Leadtools Multimedia SDK, BASS, FMOD or through Microsoft's frameworks like Media Foundation and DirectShow, the component allows displaying 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] control.PlaybackPositionSet ( nPosition as Long ) as enumWanErrorCodes |
[C++] short control.PlaybackPositionSet ( long 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 |