| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 int /* stream id */, | 85 int /* stream id */, |
| 86 double /* volume */) | 86 double /* volume */) |
| 87 | 87 |
| 88 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, | 88 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, |
| 89 int /* stream id */, | 89 int /* stream id */, |
| 90 std::string /* device_id */) | 90 std::string /* device_id */) |
| 91 | 91 |
| 92 // Messages sent from the renderer to the browser. | 92 // Messages sent from the renderer to the browser. |
| 93 | 93 |
| 94 // Request that got sent to browser for creating an audio output stream | 94 // Request that got sent to browser for creating an audio output stream |
| 95 IPC_MESSAGE_CONTROL3(AudioHostMsg_CreateStream, | 95 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, |
| 96 int /* stream_id */, | 96 int /* stream_id */, |
| 97 media::AudioParameters, /* params */ | 97 media::AudioParameters /* params */) |
| 98 int /* input_channels */) | |
| 99 | 98 |
| 100 // Request that got sent to browser for creating an audio input stream | 99 // Request that got sent to browser for creating an audio input stream |
| 101 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, | 100 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, |
| 102 int /* stream_id */, | 101 int /* stream_id */, |
| 103 media::AudioParameters /* params */, | 102 media::AudioParameters /* params */, |
| 104 std::string /* device_id */, | 103 std::string /* device_id */, |
| 105 bool /* automatic_gain_control */) | 104 bool /* automatic_gain_control */) |
| 106 | 105 |
| 107 // Indicate that audio for a stream is produced by the specified render view. | 106 // Indicate that audio for a stream is produced by the specified render view. |
| 108 IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer, | 107 IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Set audio volume of the input stream specified by stream_id. | 146 // Set audio volume of the input stream specified by stream_id. |
| 148 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 147 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
| 149 int /* stream_id */, | 148 int /* stream_id */, |
| 150 double /* volume */) | 149 double /* volume */) |
| 151 | 150 |
| 152 // Start the device referenced by the session_id for the input stream specified | 151 // Start the device referenced by the session_id for the input stream specified |
| 153 // by stream_id. | 152 // by stream_id. |
| 154 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 153 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
| 155 int /* stream_id */, | 154 int /* stream_id */, |
| 156 int /* session_id */) | 155 int /* session_id */) |
| OLD | NEW |