Drag[en]gine Script Module DragonScript Script API 1.0
Immutable sound resources. More...
|Bytes per sample. More...|
|Number of samples. More...|
|Number of channels. More...|
|Sample rate. More...|
|Play time in seconds. More...|
|Sound source is streaming. More...|
|Sound||new (String filename, bool streaming)|
|Load sound from file. More...|
|static void||loadAsynchron (String filename, ResourceNotifier notifier)|
|Load sound from file asynchronously. More...|
Immutable sound resources.
This is a native class. It can not be subclassed.
Bytes per sample.
Number of channels.
Play time in seconds.
Number of samples.
Sound source is streaming.
Load sound from file asynchronously.
Registers a request in the game engine to load an sound. Once finished or if the file is already loaded the notifier is used to deliver the loaded sound or null if the loading failed.
Load sound from file.
If the sound file has been already loaded it is assigned to this object. If the sound is not loaded yet the engine loads the sound. This call blocks until the sound is fully loaded and ready to be used. For asynchronous loading use loadAsynchron(). Multiple objects can point to the same loaded sound resource. Once no object instance uses an sound file anymore it is released from memory.