AudioInstance
clay.audio.AudioInstance (Class)
Instance Members
source: AudioSource
handle: AudioHandle
destroyed: Bool
hasEnded(): Bool
Returns |
---|
Bool |
destroy(): Void
Name | Type |
---|---|
into |
clay.buffers.Uint8Array |
start |
Int |
length |
Int |
intoResult |
Array<Int> |
Returns |
---|
Array<Int> |
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 |