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

Unified Diff: media/audio/audio_input_controller.h

Issue 462813004: Add UMA stats for silence AudioInputController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/audio_input_controller.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller.h
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h
index f2771c7e9c2bdf00673106f7f20992ad9dbf04ba..bfd9901ff633e2dfcfca1524a9fb47a1a96e457d 100644
--- a/media/audio/audio_input_controller.h
+++ b/media/audio/audio_input_controller.h
@@ -327,6 +327,9 @@ class MEDIA_EXPORT AudioInputController
// We need these to be able to feed data to the AudioPowerMonitor.
media::AudioParameters audio_params_;
base::TimeTicks last_audio_level_log_time_;
+
+ bool last_audio_level_was_silence_;
+ int silence_counter_;
#endif
size_t prev_key_down_count_;
« no previous file with comments | « no previous file | media/audio/audio_input_controller.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698