Skip to content

Commit 22ebcc7

Browse files
committed
docs(proximityVolume.js): update comments
1 parent 02273f0 commit 22ebcc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scripts/utils/proximityVolume.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import * as Tone from "tone";
33

44
/**
55
* Controls the volume of audio elements based on their proximity to the listener
6-
* @param {THREE.Vector3} emitterPosition the position of the emitting audio element
7-
* @param {Object} listener the object which is listening to the audio (typically a camera)
8-
* @param {Tone.Gain} gainNode the node to control the volume of the emitter
9-
* @param {Number} maxVolume the maximum volume for this node
6+
* @param {THREE.Vector3} emitterPosition The position of the emitting audio element
7+
* @param {Object} listener The object which is listening to the audio (typically a camera)
8+
* @param {Tone.Gain} gainNode The node to control the volume of the emitter
9+
* @param {Number} maxVolume The maximum volume for this node
1010
*/
1111
export default function proximityVolume(emitterPosition, listener, gainNode, maxVolume) {
1212
// Calculate the distance between the listener and the emitter

0 commit comments

Comments
 (0)