Static methods

static_playAgain(channel:AudioChannel):Void

@:value({ loop : false })staticplay(sound:Sound, loop:Bool = false):AudioChannel

Plays a sound immediately.

Parameters:

sound

The sound to play

loop

Whether or not to automatically loop the sound

Returns:

A channel object that can be used to control the playing sound. Please be a ware that Null is returned when the maximum number of simultaneously played channels was reached.

@:value({ loop : false })staticstream(sound:Sound, loop:Bool = false):AudioChannel