OLD | NEW |
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> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 media::AudioParameters, /* params */ | 90 media::AudioParameters, /* params */ |
91 int /* input_channels */) | 91 int /* input_channels */) |
92 | 92 |
93 // Request that got sent to browser for creating an audio input stream | 93 // Request that got sent to browser for creating an audio input stream |
94 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, | 94 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, |
95 int /* stream_id */, | 95 int /* stream_id */, |
96 media::AudioParameters /* params */, | 96 media::AudioParameters /* params */, |
97 std::string /* device_id */, | 97 std::string /* device_id */, |
98 bool /* automatic_gain_control */) | 98 bool /* automatic_gain_control */) |
99 | 99 |
| 100 // Indicate that audio for a stream is produced by the specified render view. |
| 101 IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer, |
| 102 int /* stream_id */, |
| 103 int /* render_view_id */) |
| 104 |
| 105 // Indicate that audio for a stream is consumed by the specified render view. |
| 106 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_AssociateStreamWithConsumer, |
| 107 int /* stream_id */, |
| 108 int /* render_view_id */) |
| 109 |
100 // Start buffering and play the audio stream specified by stream_id. | 110 // Start buffering and play the audio stream specified by stream_id. |
101 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, | 111 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, |
102 int /* stream_id */) | 112 int /* stream_id */) |
103 | 113 |
104 // Start recording the audio input stream specified by stream_id. | 114 // Start recording the audio input stream specified by stream_id. |
105 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, | 115 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, |
106 int /* stream_id */) | 116 int /* stream_id */) |
107 | 117 |
108 // Pause the audio stream specified by stream_id. | 118 // Pause the audio stream specified by stream_id. |
109 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream, | 119 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream, |
(...skipping 20 matching lines...) Expand all Loading... |
130 // Set audio volume of the input stream specified by stream_id. | 140 // Set audio volume of the input stream specified by stream_id. |
131 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
132 int /* stream_id */, | 142 int /* stream_id */, |
133 double /* volume */) | 143 double /* volume */) |
134 | 144 |
135 // Start the device referenced by the session_id for the input stream specified | 145 // Start the device referenced by the session_id for the input stream specified |
136 // by stream_id. | 146 // by stream_id. |
137 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 147 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
138 int /* stream_id */, | 148 int /* stream_id */, |
139 int /* session_id */) | 149 int /* session_id */) |
OLD | NEW |