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 "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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, | 90 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, |
91 int /* stream id */, | 91 int /* stream id */, |
92 double /* volume */) | 92 double /* volume */) |
93 | 93 |
94 // Messages sent from the renderer to the browser. | 94 // Messages sent from the renderer to the browser. |
95 | 95 |
96 // Request that is sent to the browser for creating an audio output stream. | 96 // Request that is sent to the browser for creating an audio output stream. |
97 // |render_view_id| is the routing ID for the render view producing the audio | 97 // |render_view_id| is the routing ID for the render view producing the audio |
98 // data. | 98 // data. |
99 IPC_MESSAGE_CONTROL3(AudioHostMsg_CreateStream, | 99 IPC_MESSAGE_CONTROL4(AudioHostMsg_CreateStream, |
100 int /* stream_id */, | 100 int /* stream_id */, |
101 int /* render_view_id */, | 101 int /* render_view_id */, |
| 102 int /* session_id */, |
102 media::AudioParameters /* params */) | 103 media::AudioParameters /* params */) |
103 | 104 |
104 // Request that is sent to the browser for creating an audio input stream. | 105 // Request that is sent to the browser for creating an audio input stream. |
105 // |render_view_id| is the routing ID for the render view consuming the audio | 106 // |render_view_id| is the routing ID for the render view consuming the audio |
106 // data. | 107 // data. |
107 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, | 108 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, |
108 int /* stream_id */, | 109 int /* stream_id */, |
109 int /* render_view_id */, | 110 int /* render_view_id */, |
110 int /* session_id */, | 111 int /* session_id */, |
111 AudioInputHostMsg_CreateStream_Config) | 112 AudioInputHostMsg_CreateStream_Config) |
(...skipping 21 matching lines...) Expand all Loading... |
133 // Set audio volume of the stream specified by stream_id. | 134 // Set audio volume of the stream specified by stream_id. |
134 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 135 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
135 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 136 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
136 int /* stream_id */, | 137 int /* stream_id */, |
137 double /* volume */) | 138 double /* volume */) |
138 | 139 |
139 // Set audio volume of the input stream specified by stream_id. | 140 // Set audio volume of the input stream specified by stream_id. |
140 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
141 int /* stream_id */, | 142 int /* stream_id */, |
142 double /* volume */) | 143 double /* volume */) |
OLD | NEW |