Constructor
new(?buffer:AudioBuffer, offset:Float = 0, ?length:Float, 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
read onlylatency:Float
The estimated output latency, in miliseconds, for this AudioSource. If not possible to retrieve will return 0.
NOTE: This will return 0 if the source is not playing!
onComplete:_Event_Void_Void<() ‑> Void> = new Event<Void>()
An event that is dispatched when the audio playback is complete.