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.

25 lines (24 loc) 1 kB
import { Observable } from "../../Misc/observable.js"; import { type IAbstractSoundInstanceOptions, _AbstractSoundInstance } from "./abstractSoundInstance.js"; import { type IStreamingSoundOptionsBase, type StreamingSound } from "./streamingSound.js"; /** * Options for creating streaming sound instance. * @internal */ export interface IStreamingSoundInstanceOptions extends IAbstractSoundInstanceOptions, IStreamingSoundOptionsBase { } /** @internal */ export declare abstract class _StreamingSoundInstance extends _AbstractSoundInstance { private _rejectPreloadedPromise; private _resolvePreloadedPromise; protected abstract readonly _options: IStreamingSoundInstanceOptions; /** @internal */ readonly onReadyObservable: Observable<_StreamingSoundInstance>; /** @internal */ readonly preloadedPromise: Promise<void>; protected constructor(sound: StreamingSound); /** @internal */ set startOffset(value: number); /** @internal */ dispose(): void; }