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
|