Copyright © 2001-2018 MultiMedia Soft

SoundPositionGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the current position during a playback session.

 

A formatted string of the current sound position can be obtained through the SoundPositionStringGet method.

 

 

Syntax

 

[Visual Basic]

control.SoundPositionGet (

nPlayer as Integer,

fPosition as Double,

bKeepCountOfRateChange as enumBoolean

) as enumErrorCodes


 

[C++]

short control.SoundPositionGet (

short nPlayer,

double *fPosition,

short bKeepCountOfRateChange

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player whose information must be retrieved

fPosition

Reference that, on return from the method call, will contain the current position. Its effective value depends upon the actual value of the ScaleUnits property.

bKeepCountOfRateChange

Boolean flag that specifies if the returned position must keep count of eventual playback rate changes set through previous calls to the Effects.PlaybackTempoSet or Effects.PlaybackRateSet methods.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

Don't keep count of playback rate changes

BOOL_TRUE

1

Keep count of playback rate changes

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The call was successful.