Skip to content

1681-engine / index / spatialMix

Function: spatialMix() ​

ts
function spatialMix(
   listener, 
   source, 
   options?
): SpatialMix;

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

The mix of a source at source heard from listener: louder near, panned to its side, duller far.

Parameters ​

ParameterType
listenerPoint
sourcePoint
optionsSpatialMixOptions

Returns ​

SpatialMix

Released under the MIT License.