Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/audio/PositionalAudio.js>PositionalAudio

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class PositionalAudio
extends Audio<PannerNode>
import { PositionalAudio } from "https://deno.land/x/threejs_4_deno@v121/src/audio/PositionalAudio.js";

Constructors

new
PositionalAudio(listener: AudioListener)

Properties

panner: PannerNode

Methods

getMaxDistance(): number
getOutput(): PannerNode
getRefDistance(): number
setDirectionalCone(
coneInnerAngle: number,
coneOuterAngle: number,
coneOuterGain: number,
): this
setDistanceModel(value: string): this
setMaxDistance(value: number): this
setRefDistance(value: number): this
setRolloffFactor(value: number): this
updateMatrixWorld(force?: boolean): void