Chromium Code Reviews| Index: webrtc/modules/audio_processing/test/audio_processing_simulator.h |
| diff --git a/webrtc/modules/audio_processing/test/audio_processing_simulator.h b/webrtc/modules/audio_processing/test/audio_processing_simulator.h |
| index f597fa101a76e7a1a705464957458308fb1b0f81..7b31709b188fe17f6a27f34ae40eab3ce39acd2a 100644 |
| --- a/webrtc/modules/audio_processing/test/audio_processing_simulator.h |
| +++ b/webrtc/modules/audio_processing/test/audio_processing_simulator.h |
| @@ -17,9 +17,9 @@ |
| #include <memory> |
| #include <string> |
| -#include "webrtc/base/timeutils.h" |
| #include "webrtc/base/constructormagic.h" |
| #include "webrtc/base/optional.h" |
| +#include "webrtc/base/timeutils.h" |
| #include "webrtc/common_audio/channel_buffer.h" |
| #include "webrtc/modules/audio_processing/include/audio_processing.h" |
| #include "webrtc/modules/audio_processing/test/test_utils.h" |
| @@ -27,6 +27,8 @@ |
| namespace webrtc { |
| namespace test { |
| +class FakeRecordingDevice; |
| + |
| // Holds all the parameters available for controlling the simulation. |
| struct SimulationSettings { |
| SimulationSettings(); |
| @@ -74,6 +76,9 @@ struct SimulationSettings { |
| rtc::Optional<int> vad_likelihood; |
| rtc::Optional<int> ns_level; |
| rtc::Optional<bool> use_refined_adaptive_filter; |
| + int initial_mic_level; |
| + bool simulate_mic_gain = false; |
| + rtc::Optional<int> simulated_mic_kind; |
| bool report_performance = false; |
| bool report_bitexactness = false; |
| bool use_verbose_logging = false; |
| @@ -164,6 +169,7 @@ class AudioProcessingSimulator { |
| AudioFrame rev_frame_; |
| AudioFrame fwd_frame_; |
| bool bitexact_output_ = true; |
| + std::unique_ptr<FakeRecordingDevice> fake_recording_device_; |
|
AleBzk
2017/05/17 11:52:24
|fake_recording_device_| holds both the mic level
|
| private: |
| void SetupOutput(); |