From 5b1549a24e1f41674453d377758e71befe51a013 Mon Sep 17 00:00:00 2001 From: Kalila L Date: Thu, 11 Feb 2021 05:59:08 -0500 Subject: [PATCH] Fix typo + update JSDoc. --- interface/src/scripting/Audio.cpp | 2 +- interface/src/scripting/Audio.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/scripting/Audio.cpp b/interface/src/scripting/Audio.cpp index d890069a61..ddcaef653c 100644 --- a/interface/src/scripting/Audio.cpp +++ b/interface/src/scripting/Audio.cpp @@ -332,7 +332,7 @@ void Audio::setNoiseReductionThreshold(float threshold) { } }); if (changed) { - emit noiseReductionAutomaticChanged(threshold); + emit noiseReductionThresholdChanged(threshold); } } diff --git a/interface/src/scripting/Audio.h b/interface/src/scripting/Audio.h index de66f6edf1..ae4e0f9d1a 100644 --- a/interface/src/scripting/Audio.h +++ b/interface/src/scripting/Audio.h @@ -277,14 +277,14 @@ public: /**jsdoc * Sets the noise gate threshold before your mic audio is transmitted. (Applies only if Audio.noiseReductionAutomatic is off.) * @function Audio.setNoiseReductionThreshold - * @param {number} threshold - The level that your input must surpass to be transmitted. (0 - 1.0) + * @param {number} threshold - The level that your input must surpass to be transmitted. 0.0 (open the gate completely) – 1.0 */ Q_INVOKABLE void setNoiseReductionThreshold(float threshold); /**jsdoc * Gets the noise reduction threshold. * @function Audio.getNoiseReductionThreshold - * @returns {number} The noise reduction threshold. (0 - 1.0) + * @returns {number} The noise reduction threshold. 0.01.0 */ Q_INVOKABLE float getNoiseReductionThreshold();