| Index: media/audio/audio_io.h
|
| diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
|
| index f3b20ec4ea49919cd802f4b4d841d42a3920e7e3..489e0abdf1c19af07d42815f9003ec4d1855d344 100644
|
| --- a/media/audio/audio_io.h
|
| +++ b/media/audio/audio_io.h
|
| @@ -122,7 +122,8 @@ class MEDIA_EXPORT AudioInputStream {
|
| // available. This is called from a special audio thread and the
|
| // implementation should return as soon as possible.
|
| virtual void OnData(AudioInputStream* stream, const uint8* src,
|
| - uint32 size, uint32 hardware_delay_bytes) = 0;
|
| + uint32 size, uint32 hardware_delay_bytes,
|
| + double volume) = 0;
|
|
|
| // The stream is done with this callback, the last call received by this
|
| // audio sink.
|
| @@ -164,6 +165,12 @@ class MEDIA_EXPORT AudioInputStream {
|
|
|
| // Returns the microphone analog volume, with range [0, max_volume] inclusive.
|
| virtual double GetVolume() = 0;
|
| +
|
| + // Sets the Automatic Gain Control (AGC) state.
|
| + virtual void SetAutomaticGainControl(bool enabled) = 0;
|
| +
|
| + // Returns the Automatic Gain Control (AGC) state.
|
| + virtual bool GetAutomaticGainControl() = 0;
|
| };
|
|
|
| #endif // MEDIA_AUDIO_AUDIO_IO_H_
|
|
|