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.
Parameters
Section titled “Parameters”source
Section titled “source”listener
Section titled “listener”maxDistance
Section titled “maxDistance”number
Returns
Section titled “Returns”number