| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 int /* stream id */, | 78 int /* stream id */, |
| 79 double /* volume */) | 79 double /* volume */) |
| 80 | 80 |
| 81 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, | 81 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, |
| 82 int /* stream id */, | 82 int /* stream id */, |
| 83 std::string /* device_id */) | 83 std::string /* device_id */) |
| 84 | 84 |
| 85 // Messages sent from the renderer to the browser. | 85 // Messages sent from the renderer to the browser. |
| 86 | 86 |
| 87 // Request that got sent to browser for creating an audio output stream | 87 // Request that got sent to browser for creating an audio output stream |
| 88 IPC_MESSAGE_CONTROL3(AudioHostMsg_CreateStream, | 88 IPC_MESSAGE_CONTROL4(AudioHostMsg_CreateStream, |
| 89 int /* render_view_id */, |
| 89 int /* stream_id */, | 90 int /* stream_id */, |
| 90 media::AudioParameters, /* params */ | 91 media::AudioParameters, /* params */ |
| 91 int /* input_channels */) | 92 int /* input_channels */) |
| 92 | 93 |
| 93 // Request that got sent to browser for creating an audio input stream | 94 // Request that got sent to browser for creating an audio input stream |
| 94 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, | 95 IPC_MESSAGE_CONTROL5(AudioInputHostMsg_CreateStream, |
| 96 int /* render_view_id */, |
| 95 int /* stream_id */, | 97 int /* stream_id */, |
| 96 media::AudioParameters /* params */, | 98 media::AudioParameters /* params */, |
| 97 std::string /* device_id */, | 99 std::string /* device_id */, |
| 98 bool /* automatic_gain_control */) | 100 bool /* automatic_gain_control */) |
| 99 | 101 |
| 100 // Start buffering and play the audio stream specified by stream_id. | 102 // Start buffering and play the audio stream specified by stream_id. |
| 101 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, | 103 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, |
| 102 int /* stream_id */) | 104 int /* stream_id */) |
| 103 | 105 |
| 104 // Start recording the audio input stream specified by stream_id. | 106 // Start recording the audio input stream specified by stream_id. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 130 // Set audio volume of the input stream specified by stream_id. | 132 // Set audio volume of the input stream specified by stream_id. |
| 131 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 133 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
| 132 int /* stream_id */, | 134 int /* stream_id */, |
| 133 double /* volume */) | 135 double /* volume */) |
| 134 | 136 |
| 135 // 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 |
| 136 // by stream_id. | 138 // by stream_id. |
| 137 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
| 138 int /* stream_id */, | 140 int /* stream_id */, |
| 139 int /* session_id */) | 141 int /* session_id */) |
| OLD | NEW |