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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int /* stream_id */) | 115 int /* stream_id */) |
116 | 116 |
117 // Start recording the audio input stream specified by stream_id. | 117 // Start recording the audio input stream specified by stream_id. |
118 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, | 118 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, |
119 int /* stream_id */) | 119 int /* stream_id */) |
120 | 120 |
121 // Pause the audio stream specified by stream_id. | 121 // Pause the audio stream specified by stream_id. |
122 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream, | 122 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream, |
123 int /* stream_id */) | 123 int /* stream_id */) |
124 | 124 |
125 // Discard all buffered audio data for the specified audio stream. | |
126 IPC_MESSAGE_CONTROL1(AudioHostMsg_FlushStream, | |
127 int /* stream_id */) | |
128 | |
129 // Close an audio stream specified by stream_id. | 125 // Close an audio stream specified by stream_id. |
130 IPC_MESSAGE_CONTROL1(AudioHostMsg_CloseStream, | 126 IPC_MESSAGE_CONTROL1(AudioHostMsg_CloseStream, |
131 int /* stream_id */) | 127 int /* stream_id */) |
132 | 128 |
133 // Close an audio input stream specified by stream_id. | 129 // Close an audio input stream specified by stream_id. |
134 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream, | 130 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream, |
135 int /* stream_id */) | 131 int /* stream_id */) |
136 | 132 |
137 // Set audio volume of the stream specified by stream_id. | 133 // Set audio volume of the stream specified by stream_id. |
138 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 134 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
139 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 135 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
140 int /* stream_id */, | 136 int /* stream_id */, |
141 double /* volume */) | 137 double /* volume */) |
142 | 138 |
143 // Set audio volume of the input stream specified by stream_id. | 139 // Set audio volume of the input stream specified by stream_id. |
144 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 140 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
145 int /* stream_id */, | 141 int /* stream_id */, |
146 double /* volume */) | 142 double /* volume */) |
OLD | NEW |