From ff0e392ca8baa7d58e00666e1973348985a98b89 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Thu, 25 May 2017 11:11:53 -0700 Subject: [PATCH] fix(device-selection): Update parameters from audio level change callback --- .../features/device-selection/components/AudioInputPreview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react/features/device-selection/components/AudioInputPreview.js b/react/features/device-selection/components/AudioInputPreview.js index c309cfafc..8dfba52cd 100644 --- a/react/features/device-selection/components/AudioInputPreview.js +++ b/react/features/device-selection/components/AudioInputPreview.js @@ -118,11 +118,13 @@ class AudioInputPreview extends PureComponent { * Updates the internal state of the last know audio level. The level should * be between 0 and 1, as the level will be used as a percentage out of 1. * + * @param {TraceablePeerConnection} peerConnection - The peer connection + * representation from the library. * @param {number} audioLevel - The new audio level for the track. * @private * @returns {void} */ - _updateAudioLevel(audioLevel) { + _updateAudioLevel(peerConnection, audioLevel) { this.setState({ audioLevel });