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

PlayMP3File

PlayMP3File (string filename)
Changes the currently playing background music to FILENAME, which must be an MP3 or OGG file.

Since normally MP3 files are built into the MUSIC.VOX file, there may be occasions where you want one MP3 (for example, the intro music) to be distributed with your main game rather than the music pack. So, this function allows you to play any named MP3 or OGG file. However, you will have to bundle the file separately in your game distribution (it is not automatically compiled into the EXE).

Example:

PlayMP3File ("chesney.mp3");
will play "chesney.mp3" as the background music.

See Also: PlayMusic, StopMusic


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