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

Side by Side Diff: webrtc/modules/audio_processing/gain_control_impl.h

Issue 1348903004: Adding APM configuration in AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 21 matching lines...) Expand all
32 int AnalyzeCaptureAudio(AudioBuffer* audio); 32 int AnalyzeCaptureAudio(AudioBuffer* audio);
33 int ProcessCaptureAudio(AudioBuffer* audio); 33 int ProcessCaptureAudio(AudioBuffer* audio);
34 34
35 // ProcessingComponent implementation. 35 // ProcessingComponent implementation.
36 int Initialize() override; 36 int Initialize() override;
37 37
38 // GainControl implementation. 38 // GainControl implementation.
39 bool is_enabled() const override; 39 bool is_enabled() const override;
40 int stream_analog_level() override; 40 int stream_analog_level() override;
41 41
42 bool is_limiter_enabled() const override;
43 Mode mode() const override;
peah-webrtc 2015/09/22 12:05:29 Is it really needed to change the public/private s
minyue-webrtc 2015/09/22 13:19:29 Similar to suppression_level() in echo_cancellatio
peah-webrtc 2015/09/24 09:28:02 Acknowledged.
44
42 private: 45 private:
43 // GainControl implementation. 46 // GainControl implementation.
44 int Enable(bool enable) override; 47 int Enable(bool enable) override;
45 int set_stream_analog_level(int level) override; 48 int set_stream_analog_level(int level) override;
46 int set_mode(Mode mode) override; 49 int set_mode(Mode mode) override;
47 Mode mode() const override;
48 int set_target_level_dbfs(int level) override; 50 int set_target_level_dbfs(int level) override;
49 int target_level_dbfs() const override; 51 int target_level_dbfs() const override;
50 int set_compression_gain_db(int gain) override; 52 int set_compression_gain_db(int gain) override;
51 int compression_gain_db() const override; 53 int compression_gain_db() const override;
52 int enable_limiter(bool enable) override; 54 int enable_limiter(bool enable) override;
53 bool is_limiter_enabled() const override;
54 int set_analog_level_limits(int minimum, int maximum) override; 55 int set_analog_level_limits(int minimum, int maximum) override;
55 int analog_level_minimum() const override; 56 int analog_level_minimum() const override;
56 int analog_level_maximum() const override; 57 int analog_level_maximum() const override;
57 bool stream_is_saturated() const override; 58 bool stream_is_saturated() const override;
58 59
59 // ProcessingComponent implementation. 60 // ProcessingComponent implementation.
60 void* CreateHandle() const override; 61 void* CreateHandle() const override;
61 int InitializeHandle(void* handle) const override; 62 int InitializeHandle(void* handle) const override;
62 int ConfigureHandle(void* handle) const override; 63 int ConfigureHandle(void* handle) const override;
63 void DestroyHandle(void* handle) const override; 64 void DestroyHandle(void* handle) const override;
64 int num_handles_required() const override; 65 int num_handles_required() const override;
65 int GetHandleError(void* handle) const override; 66 int GetHandleError(void* handle) const override;
66 67
67 const AudioProcessing* apm_; 68 const AudioProcessing* apm_;
68 CriticalSectionWrapper* crit_; 69 CriticalSectionWrapper* crit_;
69 Mode mode_; 70 Mode mode_;
70 int minimum_capture_level_; 71 int minimum_capture_level_;
71 int maximum_capture_level_; 72 int maximum_capture_level_;
72 bool limiter_enabled_; 73 bool limiter_enabled_;
73 int target_level_dbfs_; 74 int target_level_dbfs_;
74 int compression_gain_db_; 75 int compression_gain_db_;
75 std::vector<int> capture_levels_; 76 std::vector<int> capture_levels_;
76 int analog_capture_level_; 77 int analog_capture_level_;
77 bool was_analog_level_set_; 78 bool was_analog_level_set_;
78 bool stream_is_saturated_; 79 bool stream_is_saturated_;
79 }; 80 };
80 } // namespace webrtc 81 } // namespace webrtc
81 82
82 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_ 83 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_GAIN_CONTROL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698