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" | |
15 #include "media/audio/audio_input_ipc.h" | 14 #include "media/audio/audio_input_ipc.h" |
16 #include "media/audio/audio_output_ipc.h" | 15 #include "media/audio/audio_output_ipc.h" |
17 #include "media/audio/audio_parameters.h" | 16 #include "media/audio/audio_parameters.h" |
18 | 17 |
19 #undef IPC_MESSAGE_EXPORT | 18 #undef IPC_MESSAGE_EXPORT |
20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
21 #define IPC_MESSAGE_START AudioMsgStart | 20 #define IPC_MESSAGE_START AudioMsgStart |
22 | 21 |
23 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegate::State, | 22 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegate::State, |
24 media::AudioInputIPCDelegate::kStateLast) | 23 media::AudioInputIPCDelegate::kStateLast) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Set audio volume of the stream specified by stream_id. | 122 // Set audio volume of the stream specified by stream_id. |
124 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 123 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
125 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 124 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
126 int /* stream_id */, | 125 int /* stream_id */, |
127 double /* volume */) | 126 double /* volume */) |
128 | 127 |
129 // Set audio volume of the input stream specified by stream_id. | 128 // Set audio volume of the input stream specified by stream_id. |
130 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 129 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
131 int /* stream_id */, | 130 int /* stream_id */, |
132 double /* volume */) | 131 double /* volume */) |
OLD | NEW |