mojo.audio.Sound - nitrologic/monkey2 GitHub Wiki

mojo::mojo.audio.Sound

Class Sound Extends std:std.resource.Resource

The Sound class.

Constructors
New Creates a new sound.
Properties
Duration The duration, in seconds, of the sound. (read only)
Format The format of the sound. (read only)
Hertz The playback rate of the sound. (read only)
Length The length, in samples, of the sound. (read only)
Methods
Play Plays a sound through a temporary channel.
Functions
Load Loads a sound.