class Audio
package kha.audio1
Static methods
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.