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..80b90e7eb8cb2bc48a4404cd5dcf44edc8dec71a 100644 |
--- a/webrtc/modules/audio_processing/test/audio_processing_simulator.h |
+++ b/webrtc/modules/audio_processing/test/audio_processing_simulator.h |
@@ -17,16 +17,24 @@ |
#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/fake_recording_device.h" |
#include "webrtc/modules/audio_processing/test/test_utils.h" |
namespace webrtc { |
namespace test { |
+// TODO(alessiob): Check what initial value makes sense, 100 was used in |
+// WavBasedSimulator::last_specified_microphone_level_. |
+constexpr int kInitialMicrophoneGainLevel = 100; |
peah-webrtc
2017/05/05 06:28:41
Does this need to go into the header file? It is o
AleBzk
2017/05/05 12:20:18
Done.
|
+ |
+constexpr FakeRecordingDevice::LevelToScalingMappingKind kDefaultMicKind = |
peah-webrtc
2017/05/05 06:28:41
Does this need to go into the header file? It is o
AleBzk
2017/05/05 12:20:17
Done.
|
+ FakeRecordingDevice::LevelToScalingMappingKind::kIdentity; |
+ |
// Holds all the parameters available for controlling the simulation. |
struct SimulationSettings { |
SimulationSettings(); |
@@ -74,6 +82,8 @@ struct SimulationSettings { |
rtc::Optional<int> vad_likelihood; |
rtc::Optional<int> ns_level; |
rtc::Optional<bool> use_refined_adaptive_filter; |
+ 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 +174,7 @@ class AudioProcessingSimulator { |
AudioFrame rev_frame_; |
AudioFrame fwd_frame_; |
bool bitexact_output_ = true; |
+ FakeRecordingDevice fake_recording_device_; |
private: |
void SetupOutput(); |