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

Unified Diff: content/common/media/audio_messages.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
Index: content/common/media/audio_messages.h
diff --git a/content/common/media/audio_messages.h b/content/common/media/audio_messages.h
index bac2537eb13d9d2abb9ed7d3d0b1269ff5059287..0acb35c4715c1a085d36bb2ad83f2c2b78826e51 100644
--- a/content/common/media/audio_messages.h
+++ b/content/common/media/audio_messages.h
@@ -5,6 +5,8 @@
// IPC messages for the audio.
// Multiply-included message file, hence no include guard.
+#include <string>
+
#include "base/basictypes.h"
#include "base/shared_memory.h"
#include "base/sync_socket.h"
@@ -91,10 +93,11 @@ IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream,
AudioParameters /* params */)
// Request that got sent to browser for creating an audio input stream
-IPC_MESSAGE_CONTROL3(AudioInputHostMsg_CreateStream,
+IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
int /* stream_id */,
AudioParameters /* params */,
- std::string /* device_id */)
+ std::string /* device_id */,
+ bool /* automatic_gain_control */)
// Start buffering and play the audio stream specified by stream_id.
IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream,
@@ -120,11 +123,6 @@ IPC_MESSAGE_CONTROL1(AudioHostMsg_CloseStream,
IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream,
int /* stream_id */)
-// Get audio volume of the input stream specified by
-// (render_view_id, stream_id).
-IPC_MESSAGE_CONTROL1(AudioInputHostMsg_GetVolume,
- int /* stream_id */)
-
// Set audio volume of the stream specified by stream_id.
// TODO(hclam): change this to vector if we have channel numbers other than 2.
IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume,
« no previous file with comments | « content/browser/renderer_host/media/audio_input_sync_writer.cc ('k') | content/renderer/media/audio_input_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698