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

Unified Diff: webrtc/modules/audio_processing/test/audio_processing_simulator.h

Issue 2834643002: audioproc_f with simulated mic analog gain (Closed)
Patch Set: set_stream_analog_level and stream_analog_level moved into parent class AudioProcessingSimulator Created 3 years, 8 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/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..8d5d7c809dd6640afbfbde104cda3b8ed7e35325 100644
--- a/webrtc/modules/audio_processing/test/audio_processing_simulator.h
+++ b/webrtc/modules/audio_processing/test/audio_processing_simulator.h
@@ -74,6 +74,7 @@ struct SimulationSettings {
rtc::Optional<int> vad_likelihood;
rtc::Optional<int> ns_level;
rtc::Optional<bool> use_refined_adaptive_filter;
+ bool simulate_mic_gain = false;
bool report_performance = false;
bool report_bitexactness = false;
bool use_verbose_logging = false;
@@ -135,7 +136,8 @@ class AudioProcessingSimulator {
};
TickIntervalStats* mutable_proc_time() { return &proc_time_; }
- void ProcessStream(bool fixed_interface);
+ void ProcessStream(bool fixed_interface,
+ bool skip_analog_level_update = false);
aleloi 2017/04/21 11:46:42 Suggest rename into do_analog_level_update instead
AleBzk 2017/04/24 09:40:26 Done.
void ProcessReverseStream(bool fixed_interface);
void CreateAudioProcessor();
void DestroyAudioProcessor();
@@ -164,6 +166,9 @@ class AudioProcessingSimulator {
AudioFrame rev_frame_;
AudioFrame fwd_frame_;
bool bitexact_output_ = true;
+ // TODO(alessiob): Check what initial value makes sense, 100 comes from
+ // WavBasedSimulator::last_specified_microphone_level_.
+ int last_specified_microphone_level_ = 100;
private:
void SetupOutput();

Powered by Google App Engine
This is Rietveld 408576698