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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/sync_socket.h" | 10 #include "base/sync_socket.h" |
| 11 #include "content/common/content_export.h" |
11 #include "content/common/media/audio_stream_state.h" | 12 #include "content/common/media/audio_stream_state.h" |
12 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
13 #include "media/audio/audio_buffers_state.h" | 14 #include "media/audio/audio_buffers_state.h" |
14 #include "media/audio/audio_parameters.h" | 15 #include "media/audio/audio_parameters.h" |
15 | 16 |
| 17 #undef IPC_MESSAGE_EXPORT |
| 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
16 #define IPC_MESSAGE_START AudioMsgStart | 19 #define IPC_MESSAGE_START AudioMsgStart |
17 | 20 |
18 IPC_ENUM_TRAITS(AudioStreamState) | 21 IPC_ENUM_TRAITS(AudioStreamState) |
19 IPC_ENUM_TRAITS(AudioParameters::Format) | 22 IPC_ENUM_TRAITS(AudioParameters::Format) |
20 IPC_ENUM_TRAITS(ChannelLayout) | 23 IPC_ENUM_TRAITS(ChannelLayout) |
21 | 24 |
22 IPC_STRUCT_TRAITS_BEGIN(AudioBuffersState) | 25 IPC_STRUCT_TRAITS_BEGIN(AudioBuffersState) |
23 IPC_STRUCT_TRAITS_MEMBER(pending_bytes) | 26 IPC_STRUCT_TRAITS_MEMBER(pending_bytes) |
24 IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes) | 27 IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes) |
25 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 28 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Set audio volume of the input stream specified by stream_id. | 145 // Set audio volume of the input stream specified by stream_id. |
143 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 146 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
144 int /* stream_id */, | 147 int /* stream_id */, |
145 double /* volume */) | 148 double /* volume */) |
146 | 149 |
147 // 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 |
148 // by stream_id. | 151 // by stream_id. |
149 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 152 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
150 int /* stream_id */, | 153 int /* stream_id */, |
151 int /* session_id */) | 154 int /* session_id */) |
OLD | NEW |