| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // it uses to communicate with the browser process about the state of the | 47 // it uses to communicate with the browser process about the state of the |
| 48 // buffered audio data. | 48 // buffered audio data. |
| 49 IPC_MESSAGE_CONTROL4( | 49 IPC_MESSAGE_CONTROL4( |
| 50 AudioMsg_NotifyStreamCreated, | 50 AudioMsg_NotifyStreamCreated, |
| 51 int /* stream id */, | 51 int /* stream id */, |
| 52 base::SharedMemoryHandle /* handle */, | 52 base::SharedMemoryHandle /* handle */, |
| 53 base::SyncSocket::TransitDescriptor /* socket descriptor */, | 53 base::SyncSocket::TransitDescriptor /* socket descriptor */, |
| 54 uint32_t /* length */) | 54 uint32_t /* length */) |
| 55 | 55 |
| 56 // Tell the renderer process that an audio input stream has been created. | 56 // Tell the renderer process that an audio input stream has been created. |
| 57 // The renderer process would be given a SyncSocket that it should read | 57 // The renderer process would be given a SyncSocket that it should read from |
| 58 // from from then on. It is also given number of segments in shared memory. | 58 // from then on. It is also given number of segments in shared memory and |
| 59 IPC_MESSAGE_CONTROL5( | 59 // whether the stream initially is muted. |
| 60 AudioInputMsg_NotifyStreamCreated, | 60 IPC_MESSAGE_CONTROL(AudioInputMsg_NotifyStreamCreated, |
| 61 int /* stream id */, | 61 int /* stream id */, |
| 62 base::SharedMemoryHandle /* handle */, | 62 base::SharedMemoryHandle /* handle */, |
| 63 base::SyncSocket::TransitDescriptor /* socket descriptor */, | 63 base::SyncSocket::TransitDescriptor /* socket descriptor */, |
| 64 uint32_t /* length */, | 64 uint32_t /* length */, |
| 65 uint32_t /* segment count */) | 65 uint32_t /* segment count */, |
| 66 bool /* initially muted */) |
| 66 | 67 |
| 67 // Notification message sent from AudioRendererHost to renderer for state | 68 // Notification message sent from AudioRendererHost to renderer for state |
| 68 // update on error. | 69 // update on error. |
| 69 IPC_MESSAGE_CONTROL1(AudioMsg_NotifyStreamError, int /* stream id */) | 70 IPC_MESSAGE_CONTROL1(AudioMsg_NotifyStreamError, int /* stream id */) |
| 70 | 71 |
| 71 // Notification message sent from browser to renderer for state update. | 72 // Notification message sent from browser to renderer for state update. |
| 72 IPC_MESSAGE_CONTROL1(AudioInputMsg_NotifyStreamError, int /* stream id */) | 73 IPC_MESSAGE_CONTROL1(AudioInputMsg_NotifyStreamError, int /* stream id */) |
| 73 | 74 |
| 74 // Notification message sent from browser to renderer when stream mutes or | 75 // Notification message sent from browser to renderer when stream mutes or |
| 75 // unmutes. | 76 // unmutes. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Set audio volume of the stream specified by stream_id. | 128 // Set audio volume of the stream specified by stream_id. |
| 128 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 129 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
| 129 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 130 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
| 130 int /* stream_id */, | 131 int /* stream_id */, |
| 131 double /* volume */) | 132 double /* volume */) |
| 132 | 133 |
| 133 // Set audio volume of the input stream specified by stream_id. | 134 // Set audio volume of the input stream specified by stream_id. |
| 134 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 135 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
| 135 int /* stream_id */, | 136 int /* stream_id */, |
| 136 double /* volume */) | 137 double /* volume */) |
| OLD | NEW |