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

Unified Diff: media/audio/audio_io.h

Issue 15563004: Improved AGC update scheme for the audio backend in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 7 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
Index: media/audio/audio_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index 0f3f67379fb8278ef1c54142ff8a43275e9067c0..0845c530a26b84045537d948f679a8df1071369b 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -107,6 +107,14 @@ class MEDIA_EXPORT AudioOutputStream {
// Close the stream. This also generates AudioSourceCallback::OnClose().
// After calling this method, the object should not be used anymore.
virtual void Close() = 0;
+
+ // Sets the Automatic Gain Control (AGC) state.
+ // Utilized in live-audio (unified) IO mode.
+ virtual void SetAutomaticGainControl(bool enabled) {}
tommi (sloooow) - chröme 2013/05/24 18:21:11 pure virtual?
henrika (OOO until Aug 14) 2013/05/27 12:17:43 Actually the idea was to add these in a follow-up
+
+ // Returns the Automatic Gain Control (AGC) state.
+ // Utilized in live-audio (unified) IO mode.
+ virtual bool GetAutomaticGainControl() { return false; }
tommi (sloooow) - chröme 2013/05/24 18:21:11 same here
henrika (OOO until Aug 14) 2013/05/27 12:17:43 see above
};
// Models an audio sink receiving recorded audio from the audio driver.

Powered by Google App Engine
This is Rietveld 408576698