Copyright © 2001-2019 MultiMedia Soft

PlaySoundMoveFinalPos method

Previous pageReturn to chapter overviewNext page

Remarks

 

Moves the final playback position during a playback session started through the PlaySound method or through the PlaySoundRange and PlaySoundRangeLoop methods.

 

 

Syntax

 

[Visual Basic]

control.PlaySoundMoveFinalPos (

nPlayer as Integer

nToPosition as Long

) as enumErrorCodes


[C++]

short control.PlaySoundMoveFinalPos (

short nPlayer,

long nToPosition

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that will play the sound

nToPosition

Final playback position expressed in the unit specified by the ScaleUnits property. Set this value to -1 for playing till the song end.

If the current playback position should be higher than the final range position, playback would be immediately stopped.

 

 

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