1681-engine / index / SpatialEmitterOptions
Interface: SpatialEmitterOptions ​
Defined in: src/audio/spatial.ts:48
Extends ​
Properties ​
loop? ​
optional loop?: boolean;Defined in: src/audio/spatial.ts:52
Plays on for good (default true); a one-shot ends by itself.
maxPan? ​
optional maxPan?: number;Defined in: src/audio/spatial.ts:15
The furthest it pans, 0–1: 1 is one ear only, which sounds wrong on headphones (default 0.8).
Inherited from ​
muffle? ​
optional muffle?: readonly [number, number] | null;Defined in: src/audio/spatial.ts:17
Low-pass cutoff (Hz) beside the listener and at the edge of range, so far sounds are dull; null for none.
Inherited from ​
panWidth? ​
optional panWidth?: number;Defined in: src/audio/spatial.ts:13
Px off to one side at which the sound is panned fully that way (default range / 2).
Inherited from ​
playbackRate? ​
optional playbackRate?: number;Defined in: src/audio/spatial.ts:53
range? ​
optional range?: number;Defined in: src/audio/spatial.ts:9
Beyond this (px) the source is not heard (default 480).
Inherited from ​
rolloff? ​
optional rolloff?: number;Defined in: src/audio/spatial.ts:11
How the loudness falls off: 1 straight, higher drops faster near the edge of range (default 1.5).
Inherited from ​
volume? ​
optional volume?: number;Defined in: src/audio/spatial.ts:50
0–1 (default 1).