Skip to main content

SoundManager

class SoundManager {
id: string;

name: string;

play(): this;

pause(): this;

resume(): this;

stop(): this;

setVolume(volume: number): this;

setPlaybackRate(playbackRate: number): this;

setLoop(loop: SoundLoop): this;

setLoopStart(loopStart: number): this;

setLoopEnd(loopEnd: number): this;

setPosition(position: Vector3Array | Vector3): this;

setMinDistance(minDistance: number): this;

setMaxDistance(maxDistance: number): this;

setRolloffFactor(rolloffFactor: number): this;

setOptions(options: SoundOptions): void;

destroy(): void;
}