API

Interface SoundSourceOptions

interface SoundSourceOptions {
    name?: string;
    outBus?: PrimaryAudioBus;
    outBusAutoDefault?: boolean;
    volume?: number;
}
Index
name?: string

Optional name.

Output bus. Defaults to the engine's main bus unless outBusAutoDefault is false.

outBusAutoDefault?: boolean

Whether the output bus defaults to the engine's main bus when outBus is not set. Defaults to true for createSoundSourceAsync and false for createMicrophoneSoundSourceAsync (a mic is usually analyzed, not played back, to avoid feedback).

volume?: number

Initial volume. Defaults to 1.