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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 uint32_t /* length */, | 64 uint32_t /* length */, |
65 uint32_t /* segment count */) | 65 uint32_t /* segment count */) |
66 | 66 |
67 // Notification message sent from AudioRendererHost to renderer for state | 67 // Notification message sent from AudioRendererHost to renderer for state |
68 // update on error. | 68 // update on error. |
69 IPC_MESSAGE_CONTROL1(AudioMsg_NotifyStreamError, int /* stream id */) | 69 IPC_MESSAGE_CONTROL1(AudioMsg_NotifyStreamError, int /* stream id */) |
70 | 70 |
71 // Notification message sent from browser to renderer for state update. | 71 // Notification message sent from browser to renderer for state update. |
72 IPC_MESSAGE_CONTROL1(AudioInputMsg_NotifyStreamError, int /* stream id */) | 72 IPC_MESSAGE_CONTROL1(AudioInputMsg_NotifyStreamError, int /* stream id */) |
73 | 73 |
| 74 // Notification message sent from browser to renderer when stream mutes or |
| 75 // unmutes. |
| 76 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamMuted, |
| 77 int /* stream id */, |
| 78 bool /* is muted? */) |
| 79 |
74 // Messages sent from the renderer to the browser. | 80 // Messages sent from the renderer to the browser. |
75 | 81 |
76 // Message sent to the browser to request the use of an audio output | 82 // Message sent to the browser to request the use of an audio output |
77 // device. |render_frame_id| is the routing ID for the RenderFrame producing | 83 // device. |render_frame_id| is the routing ID for the RenderFrame producing |
78 // the audio data. | 84 // the audio data. |
79 IPC_MESSAGE_CONTROL5(AudioHostMsg_RequestDeviceAuthorization, | 85 IPC_MESSAGE_CONTROL5(AudioHostMsg_RequestDeviceAuthorization, |
80 int /* stream_id */, | 86 int /* stream_id */, |
81 int /* render_frame_id */, | 87 int /* render_frame_id */, |
82 int /* session_id */, | 88 int /* session_id */, |
83 std::string /* device_id */, | 89 std::string /* device_id */, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Set audio volume of the stream specified by stream_id. | 127 // Set audio volume of the stream specified by stream_id. |
122 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 128 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
123 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 129 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
124 int /* stream_id */, | 130 int /* stream_id */, |
125 double /* volume */) | 131 double /* volume */) |
126 | 132 |
127 // Set audio volume of the input stream specified by stream_id. | 133 // Set audio volume of the input stream specified by stream_id. |
128 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 134 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
129 int /* stream_id */, | 135 int /* stream_id */, |
130 double /* volume */) | 136 double /* volume */) |
OLD | NEW |