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/memory/shared_memory.h" | 9 #include "base/memory/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/media_param_traits.h" | 12 #include "content/common/media/media_param_traits.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_input_ipc.h" | 15 #include "media/audio/audio_input_ipc.h" |
15 #include "media/audio/audio_output_ipc.h" | 16 #include "media/audio/audio_output_ipc.h" |
16 #include "media/audio/audio_parameters.h" | 17 #include "media/audio/audio_parameters.h" |
17 | 18 |
18 #undef IPC_MESSAGE_EXPORT | 19 #undef IPC_MESSAGE_EXPORT |
19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
20 #define IPC_MESSAGE_START AudioMsgStart | 21 #define IPC_MESSAGE_START AudioMsgStart |
21 | 22 |
22 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegate::State, | 23 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegate::State, |
23 media::AudioInputIPCDelegate::kStateLast) | 24 media::AudioInputIPCDelegate::kStateLast) |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Set audio volume of the stream specified by stream_id. | 138 // Set audio volume of the stream specified by stream_id. |
138 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 139 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
139 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 140 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
140 int /* stream_id */, | 141 int /* stream_id */, |
141 double /* volume */) | 142 double /* volume */) |
142 | 143 |
143 // Set audio volume of the input stream specified by stream_id. | 144 // Set audio volume of the input stream specified by stream_id. |
144 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 145 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
145 int /* stream_id */, | 146 int /* stream_id */, |
146 double /* volume */) | 147 double /* volume */) |
OLD | NEW |