Loads a music file from the application media folder and give it a specific ID.
constructor Create(const Owner: TAgkObject; const ID: Integer; const Filename: String); overload;
Parameters |
Description |
const Owner: TAgkObject |
the owner of the new image (eg. a TAgkScene object). |
const ID: Integer |
The ID to use for this music file (1-50). |
const Filename: String |
The filename of the music file to load. |
This version of the constructor allows you to specify an ID for the music file (the other constructor creates an ID automatically). This is useful if you want to multiple music files one after another with increasing ID's (see PlayList).
File paths must be relative, not absolute; you cannot load music files from elsewhere on the disk.
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".
Copyright (c) 2012. All rights reserved.
|