Basic usage:
Code: Select all
IncludeFile "audioplayer.pbi"
If audioplayer::load(0,"file.mp3")
Debug "Playing file " + audioplayer::getPath(0)
Debug "File duration: " + StrD(audioplayer::getDuration(0)) + " sec"
audioplayer::play(0)
Delay(5100)
audioplayer::pause(0)
Debug "Played: " + StrD(audioplayer::getCurrentTime(0)) + " sec"
audioplayer::stop(0)
audioplayer::free(0)
EndIf