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

Side by Side Diff: webrtc/modules/audio_processing/test/aec_dump_based_simulator.h

Issue 2846853002: audioproc_f with fake microphone. (Closed)
Patch Set: Initialized FakeRecordingDevice, added 'kind' command line flag, fixed bugs. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 kFloatInterface, 53 kFloatInterface,
54 kNotSpecified, 54 kNotSpecified,
55 }; 55 };
56 56
57 FILE* dump_input_file_; 57 FILE* dump_input_file_;
58 std::unique_ptr<ChannelBuffer<float>> artificial_nearend_buf_; 58 std::unique_ptr<ChannelBuffer<float>> artificial_nearend_buf_;
59 std::unique_ptr<ChannelBufferWavReader> artificial_nearend_buffer_reader_; 59 std::unique_ptr<ChannelBufferWavReader> artificial_nearend_buffer_reader_;
60 bool artificial_nearend_eof_reported_ = false; 60 bool artificial_nearend_eof_reported_ = false;
61 InterfaceType interface_used_ = InterfaceType::kNotSpecified; 61 InterfaceType interface_used_ = InterfaceType::kNotSpecified;
62 62
63 // TODO(aleloi): Remove once a FakeRecordingDevice is addded as protected
64 // member of AudioProcessingSimulator.
65 int last_specified_microphone_level_ = kInitialMicrophoneGainLevel;
66
67 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecDumpBasedSimulator); 63 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecDumpBasedSimulator);
68 }; 64 };
69 65
70 } // namespace test 66 } // namespace test
71 } // namespace webrtc 67 } // namespace webrtc
72 68
73 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AEC_DUMP_BASED_SIMULATOR_H_ 69 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AEC_DUMP_BASED_SIMULATOR_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/BUILD.gn ('k') | 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