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

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

Issue 1888593004: Delete all use of tick_util.h. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 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
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
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 memset(&codec_info_, 0, sizeof(CodecInst)); 123 memset(&codec_info_, 0, sizeof(CodecInst));
124 return _moduleFile->StopRecording(); 124 return _moduleFile->StopRecording();
125 } 125 }
126 126
127 bool FileRecorderImpl::IsRecording() const 127 bool FileRecorderImpl::IsRecording() const
128 { 128 {
129 return _moduleFile->IsRecording(); 129 return _moduleFile->IsRecording();
130 } 130 }
131 131
132 int32_t FileRecorderImpl::RecordAudioToFile( 132 int32_t FileRecorderImpl::RecordAudioToFile(
133 const AudioFrame& incomingAudioFrame, 133 const AudioFrame& incomingAudioFrame)
134 const TickTime* playoutTS)
135 { 134 {
136 if (codec_info_.plfreq == 0) 135 if (codec_info_.plfreq == 0)
137 { 136 {
138 LOG(LS_WARNING) << "RecordAudioToFile() recording audio is not " 137 LOG(LS_WARNING) << "RecordAudioToFile() recording audio is not "
139 << "turned on."; 138 << "turned on.";
140 return -1; 139 return -1;
141 } 140 }
142 AudioFrame tempAudioFrame; 141 AudioFrame tempAudioFrame;
143 tempAudioFrame.samples_per_channel_ = 0; 142 tempAudioFrame.samples_per_channel_ = 0;
144 if( incomingAudioFrame.num_channels_ == 2 && 143 if( incomingAudioFrame.num_channels_ == 2 &&
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 codecInst = codec_info_; 251 codecInst = codec_info_;
253 return 0; 252 return 0;
254 } 253 }
255 254
256 int32_t FileRecorderImpl::WriteEncodedAudioData(const int8_t* audioBuffer, 255 int32_t FileRecorderImpl::WriteEncodedAudioData(const int8_t* audioBuffer,
257 size_t bufferLength) 256 size_t bufferLength)
258 { 257 {
259 return _moduleFile->IncomingAudioData(audioBuffer, bufferLength); 258 return _moduleFile->IncomingAudioData(audioBuffer, bufferLength);
260 } 259 }
261 } // namespace webrtc 260 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/utility/source/file_recorder_impl.h ('k') | webrtc/modules/utility/source/process_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698