@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
39 lines (38 loc) • 1.61 kB
TypeScript
import type { Nullable } from "../../types.js";
import type { IAudioBusOptions } from "../abstractAudio/audioBus.js";
import { AudioBus } from "../abstractAudio/audioBus.js";
import type { _SpatialAudio } from "../abstractAudio/subProperties/spatialAudio.js";
import { _StereoAudio } from "../abstractAudio/subProperties/stereoAudio.js";
import { _WebAudioBusAndSoundSubGraph } from "./subNodes/webAudioBusAndSoundSubGraph.js";
import type { _WebAudioEngine } from "./webAudioEngine.js";
import type { IWebAudioInNode, IWebAudioSuperNode } from "./webAudioNode.js";
/** @internal */
export declare class _WebAudioBus extends AudioBus implements IWebAudioSuperNode {
private _spatial;
private readonly _spatialAutoUpdate;
private readonly _spatialMinUpdateTime;
private _stereo;
protected _subGraph: _WebAudioBusAndSoundSubGraph;
/** @internal */
readonly engine: _WebAudioEngine;
/** @internal */
constructor(name: string, engine: _WebAudioEngine, options: Partial<IAudioBusOptions>);
/** @internal */
_init(options: Partial<IAudioBusOptions>): Promise<void>;
/** @internal */
dispose(): void;
/** @internal */
get _inNode(): Nullable<AudioNode>;
/** @internal */
get _outNode(): Nullable<AudioNode>;
/** @internal */
get spatial(): _SpatialAudio;
/** @internal */
get stereo(): _StereoAudio;
/** @internal */
getClassName(): string;
protected _connect(node: IWebAudioInNode): boolean;
protected _disconnect(node: IWebAudioInNode): boolean;
private _initSpatialProperty;
private static _SubGraph;
}