Skip to content

calculatePanning

calculatePanning(source, listener, right, maxDistance): number

Defined in: audio/SpatialAudio.ts:76

Stereo pan for a source heard by a listener whose own right points along right: how far along that right the source sits, over the audible radius. Against the LISTENER’S right, not world +X — a listener that has turned hears the world turn with it, and an unturned one’s right IS world +X.

Vec3

Vec3

Vec3

number

number