An easy way to manage the lifecycle of multiple sounds. A handle is created from a source sound using createSound(), and all handle playbacks will be stopped when the Mixer is disposed.

Constructor

Methods

View source

createSound (source :Sound, ?channels :Int = 2147483647) :Sound

Creates a sound handle from a source sound. Playbacks created using the handle will be stopped when this Mixer is disposed.

Parameters:

channels

The maximum number of times this sound should be able to play at once.

View source

stopAll () :Void

Stop all the playbacks belonging to this Mixer.

Static properties

View source

static read only NAME :String