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

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

Issue 2562593003: Add an optional artificial nearend signal for aecdump call recreation (Closed)
Patch Set: Changed DCHECK to CHECK Created 4 years 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
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/test/aec_dump_based_simulator.h
diff --git a/webrtc/modules/audio_processing/test/aec_dump_based_simulator.h b/webrtc/modules/audio_processing/test/aec_dump_based_simulator.h
index 7f98f43b66d1e7b233c24d79117b6d63093b643e..5f7d138aa41eff5b2bf5a3f9374ba99836939fb5 100644
--- a/webrtc/modules/audio_processing/test/aec_dump_based_simulator.h
+++ b/webrtc/modules/audio_processing/test/aec_dump_based_simulator.h
@@ -30,9 +30,8 @@ namespace test {
// Used to perform an audio processing simulation from an aec dump.
class AecDumpBasedSimulator final : public AudioProcessingSimulator {
public:
- explicit AecDumpBasedSimulator(const SimulationSettings& settings)
- : AudioProcessingSimulator(settings) {}
- ~AecDumpBasedSimulator() override {}
+ explicit AecDumpBasedSimulator(const SimulationSettings& settings);
+ ~AecDumpBasedSimulator() override;
// Processes the messages in the aecdump file.
void Process() override;
@@ -55,6 +54,9 @@ class AecDumpBasedSimulator final : public AudioProcessingSimulator {
};
FILE* dump_input_file_;
+ std::unique_ptr<ChannelBuffer<float>> artificial_nearend_buf_;
+ std::unique_ptr<ChannelBufferWavReader> artificial_nearend_buffer_reader_;
+ bool artificial_nearend_eof_reported_ = false;
InterfaceType interface_used_ = InterfaceType::kNotSpecified;
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecDumpBasedSimulator);
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698