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

x/threejs_4_deno/src/Three.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/Three.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