Atlas Engine
API Referencefinewave

AudioEngine

Audio device controls, master volume, and spatial listener state.

Module: finewave

Audio device controls, master volume, and spatial listener state.

Declaration

export class AudioEngine { ... }

Properties

deviceName

The active audio output device name.

deviceName: string;

Methods

setListenerPosition

Sets listener position.

setListenerPosition(position: Position3d): void;

setListenerOrientation

Sets listener orientation.

setListenerOrientation(forward: Position3d, up: Position3d): void;

setListenerVelocity

Sets listener velocity.

setListenerVelocity(velocity: Position3d): void;

setMasterVolume

Sets master volume.

setMasterVolume(volume: number): void;

On this page