OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 #endif | 22 #endif |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace test { | 25 namespace test { |
26 | 26 |
27 // Used to perform an audio processing simulation from an aec dump. | 27 // Used to perform an audio processing simulation from an aec dump. |
28 class AecDumpBasedSimulator final : public AudioProcessingSimulator { | 28 class AecDumpBasedSimulator final : public AudioProcessingSimulator { |
29 public: | 29 public: |
30 explicit AecDumpBasedSimulator(const SimulationSettings& settings) | 30 explicit AecDumpBasedSimulator(const SimulationSettings& settings) |
31 : AudioProcessingSimulator(settings) {} | 31 : AudioProcessingSimulator(settings) {} |
32 virtual ~AecDumpBasedSimulator() {} | 32 ~AecDumpBasedSimulator() override {} |
33 | 33 |
34 // Processes the messages in the aecdump file. | 34 // Processes the messages in the aecdump file. |
35 void Process() override; | 35 void Process() override; |
36 | 36 |
37 private: | 37 private: |
38 void HandleMessage(const webrtc::audioproc::Init& msg); | 38 void HandleMessage(const webrtc::audioproc::Init& msg); |
39 void HandleMessage(const webrtc::audioproc::Stream& msg); | 39 void HandleMessage(const webrtc::audioproc::Stream& msg); |
40 void HandleMessage(const webrtc::audioproc::ReverseStream& msg); | 40 void HandleMessage(const webrtc::audioproc::ReverseStream& msg); |
41 void HandleMessage(const webrtc::audioproc::Config& msg); | 41 void HandleMessage(const webrtc::audioproc::Config& msg); |
42 void PrepareProcessStreamCall(const webrtc::audioproc::Stream& msg); | 42 void PrepareProcessStreamCall(const webrtc::audioproc::Stream& msg); |
(...skipping 10 matching lines...) Expand all Loading... |
53 FILE* dump_input_file_; | 53 FILE* dump_input_file_; |
54 InterfaceType interface_used_ = InterfaceType::kNotSpecified; | 54 InterfaceType interface_used_ = InterfaceType::kNotSpecified; |
55 | 55 |
56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecDumpBasedSimulator); | 56 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AecDumpBasedSimulator); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace test | 59 } // namespace test |
60 } // namespace webrtc | 60 } // namespace webrtc |
61 | 61 |
62 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AEC_DUMP_BASED_SIMULATOR_H_ | 62 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_AEC_DUMP_BASED_SIMULATOR_H_ |
OLD | NEW |