ServerConfiguration/Calla/Calla-Lib/js/src/audio/spatializers/listeners/AudioListenerNew.js
/**
     * Performs the spatialization operation for the audio source's latest location.
     * @param {Pose} loc
     */
Performs the spatialization operation for the audio source's latest location.
@param {Pose} loc
Performs the spatialization operation for the audio source ' s latest location . @param { Pose } loc
update(loc) {
        super.update(loc);
        const { p, f, u } = loc;
        this.node.positionX.setValueAtTime(p.x, 0);
        this.node.positionY.setValueAtTime(p.y, 0);
        this.node.positionZ.setValueAtTime(p.z, 0);
        this.node.forwardX.setValueAtTime(f.x, 0);
        this.node.forwardY.setValueAtTime(f.y, 0);
        this.node.forwardZ.setValueAtTime(f.z, 0);
        this.node.upX.setValueAtTime(u.x, 0);
        this.node.upY.setValueAtTime(u.y, 0);
        this.node.upZ.setValueAtTime(u.z, 0);
    }
update ( loc ) { super . update ( loc ) ; const { p , f , u } = loc ; this . node . positionX . setValueAtTime ( p . x , 0 ) ; this . node . positionY . setValueAtTime ( p . y , 0 ) ; this . node . positionZ . setValueAtTime ( p . z , 0 ) ; this . node . forwardX . setValueAtTime ( f . x , 0 ) ; this . node . forwardY . setValueAtTime ( f . y , 0 ) ; this . node . forwardZ . setValueAtTime ( f . z , 0 ) ; this . node . upX . setValueAtTime ( u . x , 0 ) ; this . node . upY . setValueAtTime ( u . y , 0 ) ; this . node . upZ . setValueAtTime ( u . z , 0 ) ; }
Performs the spatialization operation for the audio source's latest location.
Performs the spatialization operation for the audio source ' s latest location .