Audio.GetCurrentPos

number Audio.GetCurrentPos ( 

number Channel )

Example 1

audio_time = Audio.GetCurrentPos(CHANNEL_USER2);

Retrieves the current time position of the audio in user channel 2 and stores it in a variable called audio_time.

Example 2

position = Audio.GetCurrentPos(2);

Stores the current position of the audio in channel 2 in a variable named "position."

Example 3

background_music_pos = Audio.GetCurrentPos(CHANNEL_BACKGROUND);

Gets the current position of the background audio channel and stores it in background_music_pos.

See also:  Related Actions