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

Side by Side Diff: webrtc/modules/utility/source/file_recorder_impl.h

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 // This file contains a class that can write audio and/or video to file in 11 // This file contains a class that can write audio and/or video to file in
12 // multiple file formats. The unencoded input data is written to file in the 12 // multiple file formats. The unencoded input data is written to file in the
13 // encoded format specified. 13 // encoded format specified.
14 14
15 #ifndef WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 15 #ifndef WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
16 #define WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 16 #define WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
17 17
18 #include <list> 18 #include <list>
19 19
20 #include "webrtc/common_audio/resampler/include/resampler.h" 20 #include "webrtc/common_audio/resampler/include/resampler.h"
21 #include "webrtc/common_types.h" 21 #include "webrtc/common_types.h"
22 #include "webrtc/engine_configurations.h" 22 #include "webrtc/engine_configurations.h"
23 #include "webrtc/modules/interface/module_common_types.h" 23 #include "webrtc/modules/interface/module_common_types.h"
24 #include "webrtc/modules/media_file/interface/media_file.h" 24 #include "webrtc/modules/media_file/interface/media_file.h"
25 #include "webrtc/modules/media_file/interface/media_file_defines.h" 25 #include "webrtc/modules/media_file/interface/media_file_defines.h"
26 #include "webrtc/modules/utility/interface/file_recorder.h" 26 #include "webrtc/modules/utility/interface/file_recorder.h"
27 #include "webrtc/modules/utility/source/coder.h" 27 #include "webrtc/modules/utility/source/coder.h"
28 #include "webrtc/system_wrappers/interface/event_wrapper.h" 28 #include "webrtc/system_wrappers/include/event_wrapper.h"
29 #include "webrtc/system_wrappers/interface/thread_wrapper.h" 29 #include "webrtc/system_wrappers/include/thread_wrapper.h"
30 #include "webrtc/system_wrappers/interface/tick_util.h" 30 #include "webrtc/system_wrappers/include/tick_util.h"
31 #include "webrtc/typedefs.h" 31 #include "webrtc/typedefs.h"
32 32
33 namespace webrtc { 33 namespace webrtc {
34 // The largest decoded frame size in samples (60ms with 32kHz sample rate). 34 // The largest decoded frame size in samples (60ms with 32kHz sample rate).
35 enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60*32}; 35 enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60*32};
36 enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES*2}; 36 enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES*2};
37 enum { kMaxAudioBufferQueueLength = 100 }; 37 enum { kMaxAudioBufferQueueLength = 100 };
38 38
39 class CriticalSectionWrapper; 39 class CriticalSectionWrapper;
40 40
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 MediaFile* _moduleFile; 84 MediaFile* _moduleFile;
85 85
86 private: 86 private:
87 CodecInst codec_info_; 87 CodecInst codec_info_;
88 int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES]; 88 int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES];
89 AudioCoder _audioEncoder; 89 AudioCoder _audioEncoder;
90 Resampler _audioResampler; 90 Resampler _audioResampler;
91 }; 91 };
92 } // namespace webrtc 92 } // namespace webrtc
93 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 93 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/utility/source/file_player_impl.cc ('k') | webrtc/modules/utility/source/file_recorder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698