| 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/content_export.h" |
| 12 #include "content/common/media/audio_stream_state.h" | 12 #include "content/common/media/audio_stream_state.h" |
| 13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 14 #include "media/audio/audio_buffers_state.h" | 14 #include "media/audio/audio_buffers_state.h" |
| 15 #include "media/audio/audio_parameters.h" | 15 #include "media/audio/audio_parameters.h" |
| 16 | 16 |
| 17 #undef IPC_MESSAGE_EXPORT | 17 #undef IPC_MESSAGE_EXPORT |
| 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 19 #define IPC_MESSAGE_START AudioMsgStart | 19 #define IPC_MESSAGE_START AudioMsgStart |
| 20 | 20 |
| 21 IPC_ENUM_TRAITS(AudioStreamState) | 21 IPC_ENUM_TRAITS(AudioStreamState) |
| 22 IPC_ENUM_TRAITS(AudioParameters::Format) | 22 IPC_ENUM_TRAITS(AudioParameters::Format) |
| 23 IPC_ENUM_TRAITS(ChannelLayout) | 23 IPC_ENUM_TRAITS(ChannelLayout) |
| 24 | 24 |
| 25 IPC_STRUCT_TRAITS_BEGIN(AudioBuffersState) | 25 IPC_STRUCT_TRAITS_BEGIN(AudioBuffersState) |
| 26 IPC_STRUCT_TRAITS_MEMBER(pending_bytes) | 26 IPC_STRUCT_TRAITS_MEMBER(pending_bytes) |
| 27 IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes) | 27 IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes) |
| 28 IPC_STRUCT_TRAITS_MEMBER(timestamp) | |
| 29 IPC_STRUCT_TRAITS_END() | 28 IPC_STRUCT_TRAITS_END() |
| 30 | 29 |
| 31 IPC_STRUCT_TRAITS_BEGIN(AudioParameters) | 30 IPC_STRUCT_TRAITS_BEGIN(AudioParameters) |
| 32 IPC_STRUCT_TRAITS_MEMBER(format) | 31 IPC_STRUCT_TRAITS_MEMBER(format) |
| 33 IPC_STRUCT_TRAITS_MEMBER(channel_layout) | 32 IPC_STRUCT_TRAITS_MEMBER(channel_layout) |
| 34 IPC_STRUCT_TRAITS_MEMBER(sample_rate) | 33 IPC_STRUCT_TRAITS_MEMBER(sample_rate) |
| 35 IPC_STRUCT_TRAITS_MEMBER(bits_per_sample) | 34 IPC_STRUCT_TRAITS_MEMBER(bits_per_sample) |
| 36 IPC_STRUCT_TRAITS_MEMBER(samples_per_packet) | 35 IPC_STRUCT_TRAITS_MEMBER(samples_per_packet) |
| 37 IPC_STRUCT_TRAITS_MEMBER(channels) | 36 IPC_STRUCT_TRAITS_MEMBER(channels) |
| 38 IPC_STRUCT_TRAITS_END() | 37 IPC_STRUCT_TRAITS_END() |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Set audio volume of the input stream specified by stream_id. | 144 // Set audio volume of the input stream specified by stream_id. |
| 146 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 145 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
| 147 int /* stream_id */, | 146 int /* stream_id */, |
| 148 double /* volume */) | 147 double /* volume */) |
| 149 | 148 |
| 150 // Start the device referenced by the session_id for the input stream specified | 149 // Start the device referenced by the session_id for the input stream specified |
| 151 // by stream_id. | 150 // by stream_id. |
| 152 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, | 151 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, |
| 153 int /* stream_id */, | 152 int /* stream_id */, |
| 154 int /* session_id */) | 153 int /* session_id */) |
| OLD | NEW |