Skip to content

1681-engine / index / SpatialMix

Interface: SpatialMix ​

Defined in: src/audio/spatial.ts:21

How a source sounds from where the listener stands.

Properties ​

audible ​

ts
audible: boolean;

Defined in: src/audio/spatial.ts:23

Within range.


cutoffHz ​

ts
cutoffHz: number;

Defined in: src/audio/spatial.ts:29

The low-pass cutoff, Hz (the top of hearing when muffle is null).


gain ​

ts
gain: number;

Defined in: src/audio/spatial.ts:25

0–1.


pan ​

ts
pan: number;

Defined in: src/audio/spatial.ts:27

−1 left … 1 right.

Released under the MIT License.