UNPKG

@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.

37 lines (36 loc) 1.68 kB
import type { Nullable } from "../../types.js"; import type { ISoundSourceOptions } from "../abstractAudio/abstractSoundSource.js"; import { AbstractSoundSource } from "../abstractAudio/abstractSoundSource.js"; import type { AbstractSpatialAudio } from "../abstractAudio/subProperties/abstractSpatialAudio.js"; import { _StereoAudio } from "../abstractAudio/subProperties/stereoAudio.js"; import { _WebAudioBusAndSoundSubGraph } from "./subNodes/webAudioBusAndSoundSubGraph.js"; import type { _WebAudioEngine } from "./webAudioEngine.js"; import type { IWebAudioInNode } from "./webAudioNode.js"; /** @internal */ export declare class _WebAudioSoundSource extends AbstractSoundSource { private _stereo; protected _subGraph: _WebAudioBusAndSoundSubGraph; protected _webAudioNode: AudioNode; /** @internal */ _audioContext: AudioContext | OfflineAudioContext; /** @internal */ readonly engine: _WebAudioEngine; /** @internal */ constructor(name: string, webAudioNode: AudioNode, engine: _WebAudioEngine, options: Partial<ISoundSourceOptions>); /** @internal */ _initAsync(options: Partial<ISoundSourceOptions>): Promise<void>; /** @internal */ get _inNode(): AudioNode; /** @internal */ get _outNode(): Nullable<AudioNode>; /** @internal */ get stereo(): _StereoAudio; /** @internal */ dispose(): void; /** @internal */ getClassName(): string; protected _connect(node: IWebAudioInNode): boolean; protected _disconnect(node: IWebAudioInNode): boolean; protected _createSpatialProperty(autoUpdate: boolean, minUpdateTime: number): AbstractSpatialAudio; private static _SubGraph; }