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

Side by Side Diff: webrtc/modules/audio_device/audio_device_buffer.h

Issue 2514553003: Change rtc::TimeNanos and rtc::TimeMicros return value from uint64_t to int64_t. (Closed)
Patch Set: Rebased, on top of fixed BoringSSL TimeCallback.' Created 4 years 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/base/timeutils_unittest.cc ('k') | webrtc/modules/audio_device/audio_device_buffer.cc » ('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
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Contains max level (max(abs(x))) of recorded audio packets over the last 213 // Contains max level (max(abs(x))) of recorded audio packets over the last
214 // 10 seconds where a new measurement is done twice per second. The level 214 // 10 seconds where a new measurement is done twice per second. The level
215 // is reset to zero at each call to LogStats(). 215 // is reset to zero at each call to LogStats().
216 int16_t max_rec_level_ ACCESS_ON(task_queue_); 216 int16_t max_rec_level_ ACCESS_ON(task_queue_);
217 217
218 // Contains max level of recorded audio packets over the last 10 seconds 218 // Contains max level of recorded audio packets over the last 10 seconds
219 // where a new measurement is done twice per second. 219 // where a new measurement is done twice per second.
220 int16_t max_play_level_ ACCESS_ON(task_queue_); 220 int16_t max_play_level_ ACCESS_ON(task_queue_);
221 221
222 // Time stamp of last timer task (drives logging). 222 // Time stamp of last timer task (drives logging).
223 uint64_t last_timer_task_time_ ACCESS_ON(task_queue_); 223 int64_t last_timer_task_time_ ACCESS_ON(task_queue_);
224 224
225 // Counts number of audio callbacks modulo 50 to create a signal when 225 // Counts number of audio callbacks modulo 50 to create a signal when
226 // a new storage of audio stats shall be done. 226 // a new storage of audio stats shall be done.
227 int16_t rec_stat_count_ ACCESS_ON(recording_thread_checker_); 227 int16_t rec_stat_count_ ACCESS_ON(recording_thread_checker_);
228 int16_t play_stat_count_ ACCESS_ON(playout_thread_checker_); 228 int16_t play_stat_count_ ACCESS_ON(playout_thread_checker_);
229 229
230 // Time stamps of when playout and recording starts. 230 // Time stamps of when playout and recording starts.
231 uint64_t play_start_time_ ACCESS_ON(main_thread_checker_); 231 int64_t play_start_time_ ACCESS_ON(main_thread_checker_);
232 uint64_t rec_start_time_ ACCESS_ON(main_thread_checker_); 232 int64_t rec_start_time_ ACCESS_ON(main_thread_checker_);
233 233
234 // Set to true at construction and modified to false as soon as one audio- 234 // Set to true at construction and modified to false as soon as one audio-
235 // level estimate larger than zero is detected. 235 // level estimate larger than zero is detected.
236 bool only_silence_recorded_; 236 bool only_silence_recorded_;
237 237
238 // Set to true when logging of audio stats is enabled for the first time in 238 // Set to true when logging of audio stats is enabled for the first time in
239 // StartPeriodicLogging() and set to false by StopPeriodicLogging(). 239 // StartPeriodicLogging() and set to false by StopPeriodicLogging().
240 // Setting this member to false prevents (possiby invalid) log messages from 240 // Setting this member to false prevents (possiby invalid) log messages from
241 // being printed in the LogStats() task. 241 // being printed in the LogStats() task.
242 bool log_stats_ ACCESS_ON(task_queue_); 242 bool log_stats_ ACCESS_ON(task_queue_);
243 }; 243 };
244 244
245 } // namespace webrtc 245 } // namespace webrtc
246 246
247 #endif // WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ 247 #endif // WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_
OLDNEW
« no previous file with comments | « webrtc/base/timeutils_unittest.cc ('k') | webrtc/modules/audio_device/audio_device_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698