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.

39 lines (38 loc) 1.29 kB
export declare const _StereoAudioDefaults: { readonly pan: number; }; /** */ export interface IStereoAudioOptions { /** * Enable stereo. Defaults to false. * * When set to `true`, the audio node's stereo properties will be initialized on creation and there will be no * delay when setting the first stereo value. * * When not specified, or set to `false`, the audio node's stereo properties will not be initialized on creation * and there will be a small delay when setting the first stereo value. * * - This option is ignored if any other stereo options are set. */ stereoEnabled: boolean; /** * The stereo pan from -1 (left) to 1 (right). Defaults to 0. */ stereoPan: number; } /** * @param options The stereo audio options to check. * @returns `true` if stereo audio options are defined, otherwise `false`. */ export declare function _HasStereoAudioOptions(options: Partial<IStereoAudioOptions>): boolean; /** * Abstract class representing the `stereo` audio property on a sound or audio bus. * * @see {@link AudioEngineV2.listener} */ export declare abstract class AbstractStereoAudio { /** * The stereo pan from -1 (left) to 1 (right). Defaults to 0. */ abstract pan: number; }