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

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: nit 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
« no previous file with comments | « no previous file | media/audio/mac/audio_low_latency_input_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/agc_audio_stream.h
diff --git a/media/audio/agc_audio_stream.h b/media/audio/agc_audio_stream.h
index 8050788e652df968fe088d6dfd023e241867a2c8..3fc542189ca52edc7e9faa2f6ae652e93137bea1 100644
--- a/media/audio/agc_audio_stream.h
+++ b/media/audio/agc_audio_stream.h
@@ -133,6 +133,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
@@ -146,12 +152,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698