Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_ | |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_ | |
| 13 | |
| 14 #include <map> | |
| 15 #include <memory> | |
| 16 #include <string> | |
| 17 #include <utility> | |
| 18 | |
| 19 #include "webrtc/base/constructormagic.h" | |
| 20 #include "webrtc/modules/audio_processing/test/conversational_speech/multiend_ca ll.h" | |
| 21 | |
| 22 namespace webrtc { | |
| 23 namespace test { | |
| 24 namespace conversational_speech { | |
| 25 | |
| 26 struct SpeakerOutputFilePaths { | |
| 27 SpeakerOutputFilePaths(std::string new_near_end, | |
| 28 std::string new_far_end) | |
| 29 : near_end(std::move(new_near_end)), | |
|
minyue-webrtc
2017/04/07 13:24:31
no need for "move"
AleBzk
2017/04/10 08:24:49
Well, last week Henrik, Karl and I came across thi
| |
| 30 far_end(std::move(new_far_end)) {} | |
| 31 // Paths to the near-end and far-end audio track files. | |
| 32 std::string near_end; | |
|
minyue-webrtc
2017/04/07 13:24:31
can add const
AleBzk
2017/04/10 08:24:48
Done.
| |
| 33 std::string far_end; | |
|
minyue-webrtc
2017/04/07 13:24:31
can add const
AleBzk
2017/04/10 08:24:48
Done.
| |
| 34 | |
| 35 // RTC_DISALLOW_COPY_AND_ASSIGN(SpeakerOutputFilePaths); | |
|
minyue-webrtc
2017/04/07 13:24:31
why commented out
AleBzk
2017/04/10 08:24:48
Sorry, "leftover". Don't need it anymore.
| |
| 36 }; | |
| 37 | |
| 38 // Generates the near-end and far-end audio track pairs for each speaker. | |
| 39 std::unique_ptr<std::map<std::string, SpeakerOutputFilePaths>> | |
| 40 Simulate(const MultiEndCall& multiend_call, const std::string& output_path); | |
| 41 | |
| 42 } // namespace conversational_speech | |
| 43 } // namespace test | |
| 44 } // namespace webrtc | |
| 45 | |
| 46 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_ H_ | |
| OLD | NEW |