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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host.h

Issue 9702019: Adds Analog Gain Control (AGC) to the WebRTC client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved volume updating on Mac 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
Index: content/browser/renderer_host/media/audio_input_renderer_host.h
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.h b/content/browser/renderer_host/media/audio_input_renderer_host.h
index a7645514a2ba9e1dfcf501ddc102eb323a70c07e..a0c9913ce460363aa2d538d2b9359689d9504842 100644
--- a/content/browser/renderer_host/media/audio_input_renderer_host.h
+++ b/content/browser/renderer_host/media/audio_input_renderer_host.h
@@ -140,7 +140,8 @@ class CONTENT_EXPORT AudioInputRendererHost
// required properties.
void OnCreateStream(int stream_id,
const AudioParameters& params,
- const std::string& device_id);
+ const std::string& device_id,
+ bool automatic_gain_control);
// Record the audio input stream referenced by |stream_id|.
void OnRecordStream(int stream_id);
@@ -154,6 +155,10 @@ class CONTENT_EXPORT AudioInputRendererHost
// Get the volume of the audio stream referenced by |stream_id|.
void OnGetVolume(int stream_id);
+ // Set the automatic gain control state for the audio stream referenced
+ // by |stream_id|.
+ void OnSetAutomaticGainControl(int stream_id, bool enabled);
+
// Complete the process of creating an audio input stream. This will set up
// the shared memory or shared socket in low latency mode.
void DoCompleteCreation(media::AudioInputController* controller);

Powered by Google App Engine
This is Rietveld 408576698