# 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 )

void agk::LoadMusic( UINT iID, const char *sFile )

integer LoadMusic( sFile )

UINT agk::LoadMusic( const char *sFile )

## Parameters

- iID - The music number to store the music.
- sFile - The filename of the music file to load.