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

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

Issue 2496543002: Ensures that AudioDeviceBuffer::StopPeriodicLogging works as intended (Closed)
Patch Set: Feedback from kwiberg@ Created 4 years, 1 month 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 | « no previous file | 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 uint64_t play_start_time_ ACCESS_ON(main_thread_checker_);
232 uint64_t rec_start_time_ ACCESS_ON(main_thread_checker_); 232 uint64_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
238 // Set to true when logging of audio stats is enabled for the first time in
239 // StartPeriodicLogging() and set to false by StopPeriodicLogging().
240 // Setting this member to false prevents (possiby invalid) log messages from
241 // being printed in the LogStats() task.
242 bool log_stats_ ACCESS_ON(task_queue_);
237 }; 243 };
238 244
239 } // namespace webrtc 245 } // namespace webrtc
240 246
241 #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 | « no previous file | webrtc/modules/audio_device/audio_device_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698