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

Side by Side Diff: webrtc/modules/audio_processing/test/conversational_speech/timing.h

Issue 3007763002: Move array_view.h to webrtc/api/ (Closed)
Patch Set: rebase Created 3 years, 3 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) 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_TIMING_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/rtc_base/array_view.h" 17 #include "webrtc/api/array_view.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 namespace test { 20 namespace test {
21 namespace conversational_speech { 21 namespace conversational_speech {
22 22
23 struct Turn{ 23 struct Turn{
24 Turn(std::string new_speaker_name, std::string new_audiotrack_file_name, 24 Turn(std::string new_speaker_name, std::string new_audiotrack_file_name,
25 int new_offset) 25 int new_offset)
26 : speaker_name(new_speaker_name), 26 : speaker_name(new_speaker_name),
27 audiotrack_file_name(new_audiotrack_file_name), 27 audiotrack_file_name(new_audiotrack_file_name),
28 offset(new_offset) {} 28 offset(new_offset) {}
29 bool operator==(const Turn &b) const; 29 bool operator==(const Turn &b) const;
30 std::string speaker_name; 30 std::string speaker_name;
31 std::string audiotrack_file_name; 31 std::string audiotrack_file_name;
32 int offset; 32 int offset;
33 }; 33 };
34 34
35 // Loads a list of turns from a file. 35 // Loads a list of turns from a file.
36 std::vector<Turn> LoadTiming(const std::string& timing_filepath); 36 std::vector<Turn> LoadTiming(const std::string& timing_filepath);
37 37
38 // Writes a list of turns into a file. 38 // Writes a list of turns into a file.
39 void SaveTiming(const std::string& timing_filepath, 39 void SaveTiming(const std::string& timing_filepath,
40 rtc::ArrayView<const Turn> timing); 40 rtc::ArrayView<const Turn> timing);
41 41
42 } // namespace conversational_speech 42 } // namespace conversational_speech
43 } // namespace test 43 } // namespace test
44 } // namespace webrtc 44 } // namespace webrtc
45 45
46 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_ 46 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698