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

Side by Side Diff: webrtc/voice_engine/file_recorder_impl.cc

Issue 2240163002: Move FilePlayer and FileRecorder to Voice Engine (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « webrtc/voice_engine/file_recorder_impl.h ('k') | webrtc/voice_engine/output_mixer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « webrtc/voice_engine/file_recorder_impl.h ('k') | webrtc/voice_engine/output_mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698