OLD | NEW |
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 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 11 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
12 #include "webrtc/engine_configurations.h" | 12 #include "webrtc/engine_configurations.h" |
13 #include "webrtc/modules/media_file/interface/media_file.h" | 13 #include "webrtc/modules/media_file/include/media_file.h" |
14 #include "webrtc/modules/utility/source/file_recorder_impl.h" | 14 #include "webrtc/modules/utility/source/file_recorder_impl.h" |
15 #include "webrtc/system_wrappers/include/logging.h" | 15 #include "webrtc/system_wrappers/include/logging.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 FileRecorder* FileRecorder::CreateFileRecorder(uint32_t instanceID, | 18 FileRecorder* FileRecorder::CreateFileRecorder(uint32_t instanceID, |
19 FileFormats fileFormat) | 19 FileFormats fileFormat) |
20 { | 20 { |
21 return new FileRecorderImpl(instanceID, fileFormat); | 21 return new FileRecorderImpl(instanceID, fileFormat); |
22 } | 22 } |
23 | 23 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 codecInst = codec_info_; | 252 codecInst = codec_info_; |
253 return 0; | 253 return 0; |
254 } | 254 } |
255 | 255 |
256 int32_t FileRecorderImpl::WriteEncodedAudioData(const int8_t* audioBuffer, | 256 int32_t FileRecorderImpl::WriteEncodedAudioData(const int8_t* audioBuffer, |
257 size_t bufferLength) | 257 size_t bufferLength) |
258 { | 258 { |
259 return _moduleFile->IncomingAudioData(audioBuffer, bufferLength); | 259 return _moduleFile->IncomingAudioData(audioBuffer, bufferLength); |
260 } | 260 } |
261 } // namespace webrtc | 261 } // namespace webrtc |
OLD | NEW |