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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 int /* stream id */, | 81 int /* stream id */, |
82 double /* volume */) | 82 double /* volume */) |
83 | 83 |
84 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, | 84 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, |
85 int /* stream id */, | 85 int /* stream id */, |
86 std::string /* device_id */) | 86 std::string /* device_id */) |
87 | 87 |
88 // Messages sent from the renderer to the browser. | 88 // Messages sent from the renderer to the browser. |
89 | 89 |
90 // 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 |
91 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, | 91 IPC_MESSAGE_CONTROL3(AudioHostMsg_CreateStream, |
| 92 int /* render view id */, |
92 int /* stream_id */, | 93 int /* stream_id */, |
93 media::AudioParameters /* params */) | 94 media::AudioParameters /* params */) |
94 | 95 |
95 // Request that got sent to browser for creating an audio input stream | 96 // Request that got sent to browser for creating an audio input stream |
96 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, | 97 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, |
97 int /* stream_id */, | 98 int /* stream_id */, |
98 media::AudioParameters /* params */, | 99 media::AudioParameters /* params */, |
99 std::string /* device_id */, | 100 std::string /* device_id */, |
100 bool /* automatic_gain_control */) | 101 bool /* automatic_gain_control */) |
101 | 102 |
(...skipping 30 matching lines...) Expand all Loading... |
132 // Set audio volume of the input stream specified by stream_id. | 133 // Set audio volume of the input stream specified by stream_id. |
133 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 134 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
134 int /* stream_id */, | 135 int /* stream_id */, |
135 double /* volume */) | 136 double /* volume */) |
136 | 137 |
137 // Start the device referenced by the session_id for the input stream specified | 138 // Start the device referenced by the session_id for the input stream specified |
138 // by stream_id. | 139 // by stream_id. |
139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 140 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
140 int /* stream_id */, | 141 int /* stream_id */, |
141 int /* session_id */) | 142 int /* session_id */) |
OLD | NEW |