audio_sound_get_track_position


描述

This function will get the position (in seconds) within the sound file for the sound to play from. The sound can only be a single instance of a sound (the index for individual sounds being played can be stored in a variable when using the audio_play_sound or audio_play_sound_at functions).


语法:

audio_sound_get_track_position(index);


参数 描述
index The index of the sound to get the play position of.


Returns:

实数


例如:

if audio_sound_get_track_position(global.Music) != 0
   {
   audio_sound_set_track_position(global.Music, 0);
   }

The above code checks a track to get it's start position and if it's not 0 seconds it sets it to 0 seconds.