spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Multimedia functions

GetMP3PosMillis

GetMP3PosMillis ()
Returns the position of the currently playing MP3 or OGG background music file, in milliseconds from the start.

If the current track is not an MP3 or OGG track, returns 0.

If the background music is currently crossfading between two tracks, this returns the position of the old track which is fading out.

Example:

if (GetMP3PosMillis() > 30000)
  SeekMP3PosMillis(0);
will loop the track back to the start after 30 seconds.

See Also: SeekMP3PosMillis


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.