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