Audio.GetLength

number Audio.GetLength ( 

number Channel )

Example 1

total_time = Audio.GetLength(CHANNEL_USER3);

Retrieves the length of the audio track in user channel 3 and stores it in a variable called total_time.

Example 2

channel_2_length = Audio.GetLength(2);

Gets the length of the audio in channel 2 and stores it in channel_2_length.

Example 3

background_music_len = Audio.GetLength(CHANNEL_BACKGROUND);

Gets the total length of the background audio channel track and stores it in background_music_len.

See also:  Related Actions