SetAudioPosition


SetAudioPosition channel, pos

This command sets the play position within the current audio file. Channel may be 1 to 10. Up to 10 audio files may be playing concurrently. The position is in milliseconds.


Example:


' Play an audio file but start paused.
PlayAudio 1, "audio/myaudio.mp3", 1

ms = GetAudioDuration(1)

' Start playing audio at the middle of the audio file.
SetAudioPosition 1, ms/2

ResumeAudio 1

Wait





Audio






Become a Patron