3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 15:35:30 +02:00

Fix typo + update JSDoc.

This commit is contained in:
Kalila L 2021-02-11 05:59:08 -05:00
parent 085bf8423c
commit 5b1549a24e
2 changed files with 3 additions and 3 deletions
interface/src/scripting

View file

@ -332,7 +332,7 @@ void Audio::setNoiseReductionThreshold(float threshold) {
}
});
if (changed) {
emit noiseReductionAutomaticChanged(threshold);
emit noiseReductionThresholdChanged(threshold);
}
}

View file

@ -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. <code>0.0</code> (open the gate completely) &ndash; <code>1.0</code>
*/
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. <code>0.0</code> &ndash; <code>1.0</code>
*/
Q_INVOKABLE float getNoiseReductionThreshold();