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

Unified Diff: media/audio/audio_io.h

Issue 9702019: Adds Analog Gain Control (AGC) to the WebRTC client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 9 months 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 | « media/audio/audio_input_unittest.cc ('k') | media/audio/audio_low_latency_input_output_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « media/audio/audio_input_unittest.cc ('k') | media/audio/audio_low_latency_input_output_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698