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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 base::FileDescriptor /* socket handle */, | 62 base::FileDescriptor /* socket handle */, |
63 uint32 /* length */) | 63 uint32 /* length */) |
64 #endif | 64 #endif |
65 | 65 |
66 // Notification message sent from AudioRendererHost to renderer for state | 66 // Notification message sent from AudioRendererHost to renderer for state |
67 // update after the renderer has requested a Create/Start/Close. | 67 // update after the renderer has requested a Create/Start/Close. |
68 IPC_MESSAGE_CONTROL2(AudioMsg_NotifyStreamStateChanged, | 68 IPC_MESSAGE_CONTROL2(AudioMsg_NotifyStreamStateChanged, |
69 int /* stream id */, | 69 int /* stream id */, |
70 media::AudioOutputIPCDelegate::State /* new state */) | 70 media::AudioOutputIPCDelegate::State /* new state */) |
71 | 71 |
| 72 IPC_MESSAGE_CONTROL3(AudioMsg_NotifyDeviceChanged, |
| 73 int /* stream id */, |
| 74 int /* new sample rate */, |
| 75 int /* new buffer size */) |
| 76 |
72 // Notification message sent from browser to renderer for state update. | 77 // Notification message sent from browser to renderer for state update. |
73 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamStateChanged, | 78 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamStateChanged, |
74 int /* stream id */, | 79 int /* stream id */, |
75 media::AudioInputIPCDelegate::State /* new state */) | 80 media::AudioInputIPCDelegate::State /* new state */) |
76 | 81 |
77 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, | 82 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, |
78 int /* stream id */, | 83 int /* stream id */, |
79 double /* volume */) | 84 double /* volume */) |
80 | 85 |
81 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, | 86 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Set audio volume of the input stream specified by stream_id. | 145 // Set audio volume of the input stream specified by stream_id. |
141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 146 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
142 int /* stream_id */, | 147 int /* stream_id */, |
143 double /* volume */) | 148 double /* volume */) |
144 | 149 |
145 // Start the device referenced by the session_id for the input stream specified | 150 // Start the device referenced by the session_id for the input stream specified |
146 // by stream_id. | 151 // by stream_id. |
147 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 152 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
148 int /* stream_id */, | 153 int /* stream_id */, |
149 int /* session_id */) | 154 int /* session_id */) |
OLD | NEW |