Constructor
new(?buffer:AudioBuffer, offset:Int = 0, ?length:Int, loops:Int = 0)
Creates a new AudioSource
instance.
Parameters:
buffer | The |
---|---|
offset | The starting offset within the audio buffer, in samples. |
length | The length of the audio to play, in milliseconds. If |
loops | The number of times to loop the audio. |
Variables
onComplete:_Event_Void_Void<() ‑> Void> = new Event<Void>()
An event that is dispatched when the audio playback is complete.