Loads a sound file from the application media folder.
constructor Create(const Owner: TAgkObject; const Filename: String);
Parameters |
Description |
const Owner: TAgkObject |
the owner of the new image (eg. a TAgkScene object). |
const Filename: String |
The filename of the sound file to load. Must be a WAV file. |
File paths must be relative, not absolute; you cannot load sound files from elsewhere on the disk.
Please note that compressed WAV files are not supported. You must use uncompressed WAV files to ensure compatibility on all platforms.
TAgkSound
Copyright (c) 2012. All rights reserved.
|