@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.
18 lines (17 loc) • 821 B
TypeScript
import type { IAbstractSoundInstanceOptions } from "./abstractSoundInstance.js";
import { _AbstractSoundInstance } from "./abstractSoundInstance.js";
import type { IStaticSoundOptionsBase, IStaticSoundPlayOptions, IStaticSoundStopOptions } from "./staticSound.js";
/**
* Options for creating a static sound instance.
* @internal
*/
export interface IStaticSoundInstanceOptions extends IAbstractSoundInstanceOptions, IStaticSoundOptionsBase {
}
/** @internal */
export declare abstract class _StaticSoundInstance extends _AbstractSoundInstance {
protected abstract readonly _options: IStaticSoundInstanceOptions;
abstract pitch: number;
abstract playbackRate: number;
abstract play(options: Partial<IStaticSoundPlayOptions>): void;
abstract stop(options?: Partial<IStaticSoundStopOptions>): void;
}