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

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

Issue 1800413002: Add IntelligibilityEnhancer support to audioproc_float (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@reverse
Patch Set: Rebasing Created 4 years, 9 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_file_processor.h
diff --git a/webrtc/modules/audio_processing/test/audio_file_processor.h b/webrtc/modules/audio_processing/test/audio_file_processor.h
index f3db86dc848522f3afb96e37b08e20290a4cbb09..f7cde598210a27bd24fcd0e069fc89aa3e00c294 100644
--- a/webrtc/modules/audio_processing/test/audio_file_processor.h
+++ b/webrtc/modules/audio_processing/test/audio_file_processor.h
@@ -86,7 +86,9 @@ class WavFileProcessor final : public AudioFileProcessor {
// Takes ownership of all parameters.
WavFileProcessor(std::unique_ptr<AudioProcessing> ap,
std::unique_ptr<WavReader> in_file,
- std::unique_ptr<WavWriter> out_file);
+ std::unique_ptr<WavWriter> out_file,
+ std::unique_ptr<WavReader> reverse_in_file,
+ std::unique_ptr<WavWriter> reverse_out_file);
virtual ~WavFileProcessor() {}
// Processes one chunk from the WAV input and writes to the WAV output.
@@ -101,6 +103,12 @@ class WavFileProcessor final : public AudioFileProcessor {
const StreamConfig output_config_;
ChannelBufferWavReader buffer_reader_;
ChannelBufferWavWriter buffer_writer_;
+ std::unique_ptr<ChannelBuffer<float>> reverse_in_buf_;
+ std::unique_ptr<ChannelBuffer<float>> reverse_out_buf_;
+ std::unique_ptr<StreamConfig> reverse_input_config_;
+ std::unique_ptr<StreamConfig> reverse_output_config_;
+ std::unique_ptr<ChannelBufferWavReader> reverse_buffer_reader_;
+ std::unique_ptr<ChannelBufferWavWriter> reverse_buffer_writer_;
};
// Used to read from an aecdump file and write to a WavWriter.

Powered by Google App Engine
This is Rietveld 408576698