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