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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for the audio. 5 // IPC messages for the audio.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/sync_socket.h" 10 #include "base/sync_socket.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 std::string /* device_id */) 94 std::string /* device_id */)
95 95
96 // Messages sent from the renderer to the browser. 96 // Messages sent from the renderer to the browser.
97 97
98 // Request that got sent to browser for creating an audio output stream 98 // Request that got sent to browser for creating an audio output stream
99 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, 99 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream,
100 int /* stream_id */, 100 int /* stream_id */,
101 AudioParameters /* params */) 101 AudioParameters /* params */)
102 102
103 // Request that got sent to browser for creating an audio input stream 103 // Request that got sent to browser for creating an audio input stream
104 IPC_MESSAGE_CONTROL3(AudioInputHostMsg_CreateStream, 104 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
105 int /* stream_id */, 105 int /* stream_id */,
106 AudioParameters /* params */, 106 AudioParameters /* params */,
107 std::string /* device_id */) 107 std::string /* device_id */,
108 bool /* atomatic_gain_control */)
scherkus (not reviewing) 2012/03/20 13:49:41 typo
henrika (OOO until Aug 14) 2012/03/21 10:16:04 Thanks.
108 109
109 // Start buffering and play the audio stream specified by stream_id. 110 // Start buffering and play the audio stream specified by stream_id.
110 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, 111 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream,
111 int /* stream_id */) 112 int /* stream_id */)
112 113
113 // Start recording the audio input stream specified by stream_id. 114 // Start recording the audio input stream specified by stream_id.
114 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, 115 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream,
115 int /* stream_id */) 116 int /* stream_id */)
116 117
117 // Pause the audio stream specified by stream_id. 118 // Pause the audio stream specified by stream_id.
(...skipping 26 matching lines...) Expand all
144 // Set audio volume of the input stream specified by stream_id. 145 // Set audio volume of the input stream specified by stream_id.
145 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 146 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
146 int /* stream_id */, 147 int /* stream_id */,
147 double /* volume */) 148 double /* volume */)
148 149
149 // Start the device referenced by the session_id for the input stream specified 150 // Start the device referenced by the session_id for the input stream specified
150 // by stream_id. 151 // by stream_id.
151 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, 152 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice,
152 int /* stream_id */, 153 int /* stream_id */,
153 int /* session_id */) 154 int /* session_id */)
155
156 // Set automatic gain control state of the input stream specified by stream_id.
157 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetAutomaticGainControl,
158 int /* stream_id */,
159 bool /* enabled */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698