Messages related to the Sound module.

Static variables

@:value(new Message<SoundMessagePlaySound>("play_sound"))staticread onlyplay_sound:Message<SoundMessagePlaySound> = new Message<SoundMessagePlaySound>("play_sound")

Plays a sound.

Post this message to a sound-component to make it play its sound. Multiple voices is supported. The limit is set to 32 voices per sound component.

@:value(new Message<SoundMessageSetGain>("set_gain"))staticread onlyset_gain:Message<SoundMessageSetGain> = new Message<SoundMessageSetGain>("set_gain")

Set sound gain.

Post this message to a sound-component to set gain on all active playing voices.

@:value(new Message<Void>("sound_done"))staticread onlysound_done:Message<Void> = new Message<Void>("sound_done")

Callback message indicating that a sound has finished playing.

@:value(new Message<Void>("stop_sound"))staticread onlystop_sound:Message<Void> = new Message<Void>("stop_sound")

Stop a playing a sound(s).

Post this message to a sound-component to make it stop playing all active voices