CTor
DTor
Postblit is disabled
Copying this object is disabled.
Stop sound playback after ms milliseconds.
Returns the current channel in which this Sound plays. Should be in range of 1 .. 256
Returns the current volume.
Returns if the sound is currently paused
Returns if the sound is currently playing
Load the sound file (filename). Returns if the loading was successful. If not, an error message is showed which describes what the problem is.
Pause the sound playback
Plays the sound. loops describe how often the sound shall be played. A value of -1 indicated, that the sound plays forever, a value of 0 means, that the sound plays zero times. delay is the time in ms to fade in. Any previous sound will be halted.
Resume the sound playback
Set the volume, max. is 128, min. is 0 If the value is above 128, the max. will be assumed. Returns the previous volume.
Stop/Halt the sound playback
Sound represents the functionality to load and play sound files.
Note: Sound is designed to load and play <b>short</b> music files, e.g. sounds for some noises. If you want to play larger music, use Music. Note: Each Sound is played in his own channel, which means, that the number of simultaneously existing Sounds is limited to 256. This limit will be increased if necessary. * Supported formats are .wav, .mp3, .vorbis, .ogg, .midi *