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

 

 

Syntax

 

[Visual Basic]

Public Function PlaySoundMoveFinalPos (

nPlayerIndex as Int16

nToPosition as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes PlaySoundMoveFinalPos (

Int16 nPlayerIndex,

Int32 nToPosition

);


 

[C++]

public: enumErrorCodes PlaySoundMoveFinalPos (

Int16 nPlayerIndex,

Int32 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