AudioInstance

clay.audio.AudioInstance (Class)

Instance Members

source: AudioSource

handle: AudioHandle

destroyed: Bool

hasEnded(): Bool
Returns
Bool

destroy(): Void

dataGet(into: clay.buffers.Uint8Array, start: Int, length: Int, intoResult: Array<Int>): Array<Int>
Name Type
into clay.buffers.Uint8Array
start Int
length Int
intoResult Array<Int>
Returns
Array<Int>

dataSeek(toSamples: Int): Bool
Name Type
toSamples Int
Returns
Bool

new(source: AudioSource, handle: AudioHandle): Void

Create a new instance from the given audio source. Usually called via source.instance(), not directly.

Name Type
source AudioSource
handle AudioHandle