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.

57 lines (56 loc) 2.02 kB
import { type Sound } from "./sound.js"; import { type SoundTrack } from "./soundTrack.js"; import { type Vector3 } from "../Maths/math.vector.js"; import { type Nullable } from "../types.js"; declare module "../scene.pure.js" { interface Scene { /** * @internal * Backing field */ _mainSoundTrack: SoundTrack; /** * The main sound track played by the scene. * It contains your primary collection of sounds. * @deprecated please use AudioEngineV2 instead */ mainSoundTrack: SoundTrack; /** * The list of sound tracks added to the scene * @deprecated please use AudioEngineV2 instead */ soundTracks: Nullable<Array<SoundTrack>>; /** * Gets a sound using a given name * @param name defines the name to search for * @returns the found sound or null if not found at all. * @deprecated please use AudioEngineV2 instead */ getSoundByName(name: string): Nullable<Sound>; /** * Gets or sets if audio support is enabled * @deprecated please use AudioEngineV2 instead */ audioEnabled: boolean; /** * Gets or sets if audio will be output to headphones * @deprecated please use AudioEngineV2 instead */ headphone: boolean; /** * Gets or sets custom audio listener position provider * @deprecated please use AudioEngineV2 instead */ audioListenerPositionProvider: Nullable<() => Vector3>; /** * Gets or sets custom audio listener rotation provider * @deprecated please use AudioEngineV2 instead */ audioListenerRotationProvider: Nullable<() => Vector3>; /** * Gets or sets a refresh rate when using 3D audio positioning * @deprecated please use AudioEngineV2 instead */ audioPositioningRefreshRate: number; } }