Audio.Seek

Audio.Seek ( 

number Channel,

number SeekType,

number SeekTime = 0 )

Description

Seeks to a time position in an audio file.

Parameters

Channel

(number) The audio channel to seek in:

CONSTANT

VALUE

DESCRIPTION

CHANNEL_BACKGROUND

5

Background audio channel.

CHANNEL_EFFECTS

0

Effects channel (used for mouse over, down, and click sounds).

CHANNEL_NARRATION

6

Narration channel (used for voice overs).

CHANNEL_USER1

1

User channel 1.

CHANNEL_USER2

2

User channel 2.

CHANNEL_USER3

3

User channel 3.

CHANNEL_USER4

4

User channel 4.

SeekType

(number) The seek type to use:

CONSTANT

VALUE

DESCRIPTION

SEEK_BEGINNING

0

Beginning.

SEEK_END

1

End.

SEEK_FORWARD

2

Forward.

SEEK_BACKWARD

3

Backward.

SEEK_SPECIFIC

4

Specific time.

SeekTime

(number) The time in seconds to seek to (or seek by). Defaults to 0.

Note: Only used if SeekType is 2, 3 or 4.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions