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

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: 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 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 <string>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
10 #include "base/sync_socket.h" 12 #include "base/sync_socket.h"
11 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
12 #include "content/common/media/audio_param_traits.h" 14 #include "content/common/media/audio_param_traits.h"
13 #include "content/common/media/audio_stream_state.h" 15 #include "content/common/media/audio_stream_state.h"
14 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
15 #include "media/audio/audio_buffers_state.h" 17 #include "media/audio/audio_buffers_state.h"
16 #include "media/audio/audio_parameters.h" 18 #include "media/audio/audio_parameters.h"
17 19
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::string /* device_id */) 86 std::string /* device_id */)
85 87
86 // Messages sent from the renderer to the browser. 88 // Messages sent from the renderer to the browser.
87 89
88 // Request that got sent to browser for creating an audio output stream 90 // Request that got sent to browser for creating an audio output stream
89 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, 91 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream,
90 int /* stream_id */, 92 int /* stream_id */,
91 AudioParameters /* params */) 93 AudioParameters /* params */)
92 94
93 // Request that got sent to browser for creating an audio input stream 95 // Request that got sent to browser for creating an audio input stream
94 IPC_MESSAGE_CONTROL3(AudioInputHostMsg_CreateStream, 96 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
95 int /* stream_id */, 97 int /* stream_id */,
96 AudioParameters /* params */, 98 AudioParameters /* params */,
97 std::string /* device_id */) 99 std::string /* device_id */,
100 bool /* automatic_gain_control */)
98 101
99 // Start buffering and play the audio stream specified by stream_id. 102 // Start buffering and play the audio stream specified by stream_id.
100 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, 103 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream,
101 int /* stream_id */) 104 int /* stream_id */)
102 105
103 // Start recording the audio input stream specified by stream_id. 106 // Start recording the audio input stream specified by stream_id.
104 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, 107 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream,
105 int /* stream_id */) 108 int /* stream_id */)
106 109
107 // Pause the audio stream specified by stream_id. 110 // Pause the audio stream specified by stream_id.
108 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream, 111 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream,
109 int /* stream_id */) 112 int /* stream_id */)
110 113
111 // Discard all buffered audio data for the specified audio stream. 114 // Discard all buffered audio data for the specified audio stream.
112 IPC_MESSAGE_CONTROL1(AudioHostMsg_FlushStream, 115 IPC_MESSAGE_CONTROL1(AudioHostMsg_FlushStream,
113 int /* stream_id */) 116 int /* stream_id */)
114 117
115 // Close an audio stream specified by stream_id. 118 // Close an audio stream specified by stream_id.
116 IPC_MESSAGE_CONTROL1(AudioHostMsg_CloseStream, 119 IPC_MESSAGE_CONTROL1(AudioHostMsg_CloseStream,
117 int /* stream_id */) 120 int /* stream_id */)
118 121
119 // Close an audio input stream specified by stream_id. 122 // Close an audio input stream specified by stream_id.
120 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream, 123 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream,
121 int /* stream_id */) 124 int /* stream_id */)
122 125
123 // Get audio volume of the input stream specified by
124 // (render_view_id, stream_id).
125 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_GetVolume,
126 int /* stream_id */)
127
128 // Set audio volume of the stream specified by stream_id. 126 // Set audio volume of the stream specified by stream_id.
129 // TODO(hclam): change this to vector if we have channel numbers other than 2. 127 // TODO(hclam): change this to vector if we have channel numbers other than 2.
130 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, 128 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume,
131 int /* stream_id */, 129 int /* stream_id */,
132 double /* volume */) 130 double /* volume */)
133 131
134 // Set audio volume of the input stream specified by stream_id. 132 // Set audio volume of the input stream specified by stream_id.
135 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 133 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
136 int /* stream_id */, 134 int /* stream_id */,
137 double /* volume */) 135 double /* volume */)
138 136
139 // Start the device referenced by the session_id for the input stream specified 137 // Start the device referenced by the session_id for the input stream specified
140 // by stream_id. 138 // by stream_id.
141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, 139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice,
142 int /* stream_id */, 140 int /* stream_id */,
143 int /* session_id */) 141 int /* session_id */)
OLDNEW
« 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