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