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

Unified Diff: media/audio/agc_audio_stream.h

Issue 1487393003: Adding AGC stats in combination with report of missing input audio on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding XML part Created 5 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/agc_audio_stream.h
diff --git a/media/audio/agc_audio_stream.h b/media/audio/agc_audio_stream.h
index b0117e1962c1e9b7619bd0ef6c2671b3e8fc9ed2..1d5ad93ee50aad49755727cdc0ce027c5404bf08 100644
--- a/media/audio/agc_audio_stream.h
+++ b/media/audio/agc_audio_stream.h
@@ -132,6 +132,12 @@ class MEDIA_EXPORT AgcAudioStream : public AudioInterface {
*normalized_volume = normalized_volume_;
}
+ // Gets the current automatic gain control state.
+ bool GetAutomaticGainControl() override {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return agc_is_enabled_;
+ }
+
private:
// Sets the automatic gain control (AGC) to on or off. When AGC is enabled,
// the microphone volume is queried periodically and the volume level can
@@ -145,12 +151,6 @@ class MEDIA_EXPORT AgcAudioStream : public AudioInterface {
return true;
}
- // Gets the current automatic gain control state.
- bool GetAutomaticGainControl() override {
- DCHECK(thread_checker_.CalledOnValidThread());
- return agc_is_enabled_;
- }
-
// Takes a new microphone volume sample and stores it in |normalized_volume_|.
// Range is normalized to [0.0,1.0] or [0.0, 1.5] on Linux.
// This method is called periodically when AGC is enabled and always on the
« no previous file with comments | « no previous file | media/audio/mac/audio_low_latency_input_mac.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698