Index: webrtc/modules/audio_processing/test/wav_based_simulator.cc |
diff --git a/webrtc/modules/audio_processing/test/wav_based_simulator.cc b/webrtc/modules/audio_processing/test/wav_based_simulator.cc |
index 6cf0b744e6f5c040c81f7b8798e0992008c96b63..2692102d4941f5bbf061cc28bbdf86d3d617b066 100644 |
--- a/webrtc/modules/audio_processing/test/wav_based_simulator.cc |
+++ b/webrtc/modules/audio_processing/test/wav_based_simulator.cc |
@@ -12,8 +12,11 @@ |
#include <stdio.h> |
#include <iostream> |
+#include <memory> |
+#include <utility> |
peah-webrtc
2017/06/29 05:45:27
Why is utility needed?
AleBzk
2017/06/29 11:43:36
Good catch, thanks!
|
#include "webrtc/base/checks.h" |
+#include "webrtc/modules/audio_processing/test/fake_recording_device.h" |
peah-webrtc
2017/06/29 05:45:27
This include is not needed.
AleBzk
2017/06/29 11:43:36
Done.
|
#include "webrtc/modules/audio_processing/test/test_utils.h" |
#include "webrtc/test/testsupport/trace_to_stderr.h" |
@@ -55,7 +58,7 @@ WavBasedSimulator::GetCustomEventChain(const std::string& filename) { |
} |
WavBasedSimulator::WavBasedSimulator(const SimulationSettings& settings) |
- : AudioProcessingSimulator(settings) {} |
+ : AudioProcessingSimulator(settings) {} |
peah-webrtc
2017/06/29 05:45:27
Is this caused by git cl format? Was the indendati
AleBzk
2017/06/29 11:43:36
Right.
|
WavBasedSimulator::~WavBasedSimulator() = default; |
@@ -79,10 +82,6 @@ void WavBasedSimulator::PrepareProcessStreamCall() { |
ap_->echo_cancellation()->set_stream_drift_samples( |
settings_.stream_drift_samples ? *settings_.stream_drift_samples : 0); |
- |
- RTC_CHECK_EQ(AudioProcessing::kNoError, |
- ap_->gain_control()->set_stream_analog_level( |
- last_specified_microphone_level_)); |
} |
void WavBasedSimulator::PrepareReverseProcessStreamCall() { |
@@ -143,10 +142,6 @@ bool WavBasedSimulator::HandleProcessStreamCall() { |
if (samples_left_to_process) { |
PrepareProcessStreamCall(); |
ProcessStream(settings_.fixed_interface); |
- // Call stream analog level to ensure that any side-effects are triggered. |
- (void)ap_->gain_control()->stream_analog_level(); |
- last_specified_microphone_level_ = |
- ap_->gain_control()->stream_analog_level(); |
} |
return samples_left_to_process; |
} |