| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegateState, | 25 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegateState, |
| 26 media::AUDIO_INPUT_IPC_DELEGATE_STATE_LAST) | 26 media::AUDIO_INPUT_IPC_DELEGATE_STATE_LAST) |
| 27 | 27 |
| 28 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioOutputIPCDelegateState, | 28 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioOutputIPCDelegateState, |
| 29 media::AUDIO_OUTPUT_IPC_DELEGATE_STATE_LAST) | 29 media::AUDIO_OUTPUT_IPC_DELEGATE_STATE_LAST) |
| 30 | 30 |
| 31 IPC_ENUM_TRAITS_MAX_VALUE(media::SwitchOutputDeviceResult, | 31 IPC_ENUM_TRAITS_MAX_VALUE(media::SwitchOutputDeviceResult, |
| 32 media::SWITCH_OUTPUT_DEVICE_RESULT_LAST) | 32 media::SWITCH_OUTPUT_DEVICE_RESULT_LAST) |
| 33 | 33 |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format, |
| 35 media::AudioParameters::AUDIO_FORMAT_LAST) |
| 36 |
| 37 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX) |
| 38 |
| 34 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config) | 39 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config) |
| 35 IPC_STRUCT_MEMBER(media::AudioParameters, params) | 40 IPC_STRUCT_MEMBER(media::AudioParameters, params) |
| 36 IPC_STRUCT_MEMBER(bool, automatic_gain_control) | 41 IPC_STRUCT_MEMBER(bool, automatic_gain_control) |
| 37 IPC_STRUCT_MEMBER(uint32, shared_memory_count) | 42 IPC_STRUCT_MEMBER(uint32, shared_memory_count) |
| 38 IPC_STRUCT_END() | 43 IPC_STRUCT_END() |
| 39 | 44 |
| 40 // Messages sent from the browser to the renderer. | 45 // Messages sent from the browser to the renderer. |
| 41 | 46 |
| 42 // Tell the renderer process that an audio stream has been created. | 47 // Tell the renderer process that an audio stream has been created. |
| 43 // The renderer process is given a shared memory handle for the audio data | 48 // The renderer process is given a shared memory handle for the audio data |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 int /* stream_id */, | 140 int /* stream_id */, |
| 136 double /* volume */) | 141 double /* volume */) |
| 137 | 142 |
| 138 // Switch the output device of the stream specified by stream_id. | 143 // Switch the output device of the stream specified by stream_id. |
| 139 IPC_MESSAGE_CONTROL5(AudioHostMsg_SwitchOutputDevice, | 144 IPC_MESSAGE_CONTROL5(AudioHostMsg_SwitchOutputDevice, |
| 140 int /* stream_id */, | 145 int /* stream_id */, |
| 141 int /* render_frame_id */, | 146 int /* render_frame_id */, |
| 142 std::string /* device_id */, | 147 std::string /* device_id */, |
| 143 GURL /* security_origin */, | 148 GURL /* security_origin */, |
| 144 int /* request_id */) | 149 int /* request_id */) |
| OLD | NEW |