OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 #include <utility> | 17 #include <utility> |
18 | 18 |
19 #include "webrtc/base/constructormagic.h" | |
20 #include "webrtc/modules/audio_processing/test/conversational_speech/multiend_ca
ll.h" | 19 #include "webrtc/modules/audio_processing/test/conversational_speech/multiend_ca
ll.h" |
| 20 #include "webrtc/rtc_base/constructormagic.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 namespace test { | 23 namespace test { |
24 namespace conversational_speech { | 24 namespace conversational_speech { |
25 | 25 |
26 struct SpeakerOutputFilePaths { | 26 struct SpeakerOutputFilePaths { |
27 SpeakerOutputFilePaths(const std::string& new_near_end, | 27 SpeakerOutputFilePaths(const std::string& new_near_end, |
28 const std::string& new_far_end) | 28 const std::string& new_far_end) |
29 : near_end(new_near_end), | 29 : near_end(new_near_end), |
30 far_end(new_far_end) {} | 30 far_end(new_far_end) {} |
31 // Paths to the near-end and far-end audio track files. | 31 // Paths to the near-end and far-end audio track files. |
32 const std::string near_end; | 32 const std::string near_end; |
33 const std::string far_end; | 33 const std::string far_end; |
34 }; | 34 }; |
35 | 35 |
36 // Generates the near-end and far-end audio track pairs for each speaker. | 36 // Generates the near-end and far-end audio track pairs for each speaker. |
37 std::unique_ptr<std::map<std::string, SpeakerOutputFilePaths>> | 37 std::unique_ptr<std::map<std::string, SpeakerOutputFilePaths>> |
38 Simulate(const MultiEndCall& multiend_call, const std::string& output_path); | 38 Simulate(const MultiEndCall& multiend_call, const std::string& output_path); |
39 | 39 |
40 } // namespace conversational_speech | 40 } // namespace conversational_speech |
41 } // namespace test | 41 } // namespace test |
42 } // namespace webrtc | 42 } // namespace webrtc |
43 | 43 |
44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_
H_ | 44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_
H_ |
OLD | NEW |