Skip to content

Mojo audio sound

mojo:mojo.audio.Sound

Class Sound Extends std.resource.Resource#

The Sound class.

Constructors
New Creates a new sound.
Properties
BitCount Returns the loading bit count 8/12/16/24/32
Bits8 Returns true if a loaded or created sound sample is 8bits
Duration The duration, in seconds, of the sound. (read only)
Filename
Filter
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)
Loop
LoopEnd
LoopStart
Mode1 Returns true if a CMI Mode1 voice has been detected
Stereo Returns true if a loaded or created sound sample is stereo
Methods
Draw
GetSample
GetSampleMono8
Play Plays a sound through a temporary channel.
Functions
Load Loads a sound.