| Index: media/audio/audio_input_controller.h
|
| diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h
|
| index 3c3c3278f7d0098fc748ec43d33a245fc9b39673..b7aecfa7d625e89f66ff9be54db559100a162bfc 100644
|
| --- a/media/audio/audio_input_controller.h
|
| +++ b/media/audio/audio_input_controller.h
|
| @@ -188,7 +188,8 @@ class MEDIA_EXPORT AudioInputController
|
| const std::string& device_id,
|
| // External synchronous writer for audio controller.
|
| SyncWriter* sync_writer,
|
| - UserInputMonitor* user_input_monitor);
|
| + UserInputMonitor* user_input_monitor,
|
| + const bool agc_is_enabled);
|
|
|
| // Factory method for creating an AudioInputController with an existing
|
| // |stream| for low-latency mode, taking ownership of |stream|. The stream
|
| @@ -221,10 +222,6 @@ class MEDIA_EXPORT AudioInputController
|
| // to muted and 1.0 to maximum volume.
|
| virtual void SetVolume(double volume);
|
|
|
| - // Sets the Automatic Gain Control (AGC) state of the input stream.
|
| - // Changing the AGC state is not supported while recording is active.
|
| - virtual void SetAutomaticGainControl(bool enabled);
|
| -
|
| // AudioInputCallback implementation. Threading details depends on the
|
| // device-specific implementation.
|
| virtual void OnData(AudioInputStream* stream,
|
| @@ -267,7 +264,8 @@ class MEDIA_EXPORT AudioInputController
|
|
|
| AudioInputController(EventHandler* handler,
|
| SyncWriter* sync_writer,
|
| - UserInputMonitor* user_input_monitor);
|
| + UserInputMonitor* user_input_monitor,
|
| + const bool agc_is_enabled);
|
| virtual ~AudioInputController();
|
|
|
| // Methods called on the audio thread (owned by the AudioManager).
|
| @@ -282,7 +280,6 @@ class MEDIA_EXPORT AudioInputController
|
| void DoClose();
|
| void DoReportError();
|
| void DoSetVolume(double volume);
|
| - void DoSetAutomaticGainControl(bool enabled);
|
| void DoOnData(scoped_ptr<AudioBus> data);
|
| void DoLogAudioLevels(float level_dbfs, int microphone_volume_percent);
|
|
|
| @@ -351,6 +348,8 @@ class MEDIA_EXPORT AudioInputController
|
|
|
| UserInputMonitor* user_input_monitor_;
|
|
|
| + const bool agc_is_enabled_;
|
| +
|
| #if defined(AUDIO_POWER_MONITORING)
|
| // Enabled in DoCrete() but not in DoCreateForStream().
|
| bool power_measurement_is_enabled_;
|
|
|