Copyright © 2008-2014 MultiMedia Soft

SeekSound method

Previous pageReturn to chapter overviewNext page

Remarks

 

Seeks the current playback session to the specified position.

 

This method will only work with a playing or paused playback session: if you need to start the playback session from a certain position, use the PlaySoundRange method instead of the PlaySound method.

 

 

Syntax

 

[Visual Basic]

control.SeekSound (

nPosition as long,

nScaleUnits as enumScaleUnits

) as enumErrorCodes


 

[C++]

short control.SeekSound (

long nPosition,

short nScaleUnits

);


 

 

Parameter

Description

 

 

nPosition

Number representing the position to reach; it's value depends upon the value of the nScaleUnits parameter

nScaleUnits

The unit used to define the nPosition parameter.

Supported values are the following:

Mnemonic constant

Value

Meaning

SCALE_MILLISECONDS

0

Milliseconds

SCALE_SECONDS

1

Seconds

SCALE_MINUTES

2

Minutes

SCALE_HOURS

3

Hours

SCALE_PERCENTAGE

4

Percentage (expressed with values from 0 to 100)

 

 

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.