AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkMusic.Create Constructor (TAgkObject, String)

Loads a music file from the application media folder.

Syntax
Pascal
constructor Create(const Owner: TAgkObject; const Filename: String); overload;
Parameters 
Description 
const Owner: TAgkObject 
the owner of the new image (eg. a TAgkScene object). 
const Filename: String 
The filename of the music file to load. 

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". 

TAgkMusic

Copyright (c) 2012. All rights reserved.