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 |