Audio
backend.Audio (Class)
Implements: spec.Audio
Instance Members
| Name | Type | Default |
|---|---|---|
path |
String | |
options |
Null<LoadAudioOptions> | (optional) |
_done |
Function |
unity
createFromSamplesBuffer(buffer: Float32Array, samples: Int, channels: Int, sampleRate: Float, interleaved: Bool): AudioResource| Name | Type |
|---|---|
buffer |
Float32Array |
samples |
Int |
channels |
Int |
sampleRate |
Float |
interleaved |
Bool |
| Returns |
|---|
| AudioResource |
| Name | Type |
|---|---|
audio |
AudioResource |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
done |
Function |
| Name | Type |
|---|---|
audio |
AudioResource |
| Name | Type |
|---|---|
audio |
AudioResource |
| Returns |
|---|
| AudioHandle |
unity
play(audio: AudioResource, ?volume: Float = 0.5, ?pan: Float = 0, ?pitch: Float = 1, ?position: Float = 0, ?loop: Bool = false, ?bus: Int = 0): AudioHandle| Name | Type | Default |
|---|---|---|
audio |
AudioResource | |
volume |
Float | 0.5 |
pan |
Float | 0 |
pitch |
Float | 1 |
position |
Float | 0 |
loop |
Bool | false |
bus |
Int | 0 |
| Returns |
|---|
| AudioHandle |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
volume |
Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
pan |
Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
pitch |
Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
handle |
AudioHandle |
position |
Float |
| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
bus |
Int |
filter |
ceramic.AudioFilter |
onReady |
Function |
| Name | Type |
|---|---|
bus |
Int |
filterId |
Int |
| Name | Type |
|---|---|
bus |
Int |
filterId |
Int |
Private Members
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |