API reference
ReelAudioPort
pixi-reels / index / ReelAudioPort
Defined in: audio/cues.ts:71
The audio engine as the cues see it.
Methods#
loop()#
loop(name: string, opts: {
bus?: string;
fadeIn?: number;
pitch?: SoundValue;
volume?: SoundValue;
}): ReelAudioLoop;
Defined in: audio/cues.ts:75
Start a loop and hand back its handle. An unknown name returns a no-op handle.
Parameters#
| Parameter | Type |
|---|---|
name | string |
opts | { bus?: string; fadeIn?: number; pitch?: SoundValue; volume?: SoundValue; } |
opts.bus? | string |
opts.fadeIn? | number |
opts.pitch? | SoundValue |
opts.volume? | SoundValue |
Returns#
play()#
play(name: string, opts: {
bus?: string;
pitch?: SoundValue;
volume?: SoundValue;
}): void;
Defined in: audio/cues.ts:73
Fire a one-shot. An unknown name must not throw.
Parameters#
| Parameter | Type |
|---|---|
name | string |
opts | { bus?: string; pitch?: SoundValue; volume?: SoundValue; } |
opts.bus? | string |
opts.pitch? | SoundValue |
opts.volume? | SoundValue |
Returns#
void