Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1510)

Unified Diff: webrtc/modules/audio_processing/level_controller/lc_constants.h

Issue 2090583002: New module for the adaptive level controlling functionality in the audio processing module (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Temporarily deactivated the level controller until the CL with the proper tuning has been landed Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/level_controller/lc_constants.h
diff --git a/webrtc/modules/audio_coding/neteq/packet.cc b/webrtc/modules/audio_processing/level_controller/lc_constants.h
similarity index 57%
copy from webrtc/modules/audio_coding/neteq/packet.cc
copy to webrtc/modules/audio_processing/level_controller/lc_constants.h
index 8a19fe4d5923d5e22a5b485600c6da0c5f3856ba..4a64d02af75e23db84cc491eb62398eb1213a6e6 100644
--- a/webrtc/modules/audio_coding/neteq/packet.cc
+++ b/webrtc/modules/audio_processing/level_controller/lc_constants.h
@@ -8,12 +8,15 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/modules/audio_coding/neteq/packet.h"
+#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LC_CONSTANTS_H_
+#define WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LC_CONSTANTS_H_
namespace webrtc {
-Packet::Packet() = default;
-
-Packet::~Packet() = default;
+const float kMaxLcGain = 45;
+const float kMaxLcNoisePower = 200.f * 200.f;
+const float kTargetLcPeakLevel = 0.8f * 32767.f;
} // namespace webrtc
+
+#endif // WEBRTC_MODULES_AUDIO_PROCESSING_LEVEL_CONTROLLER_LC_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698