LoadMusic

Description

Loads a music file from the application media folder into a specified ID. File paths must be relative, not absolute, you cannot load music files from elsewhere on the disk. It returns the ID of the music file for referencing it later. The recommended format for cross platform compatibility is MP3.

Please note that the Meego platform does not currently support MP3, it will instead attempt to load an OGG Vorbis file. For example, if you attempt to load "music.mp3", on Meego this will be intepreted as "music.ogg".

The ID must be in the range 1 to 50.

Definition

LoadMusic( iID, sFile )

integer LoadMusic( sFile )

Parameters