Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/common/media/audio_messages.h

Issue 2319493002: Add mojo interface for audio rendering. (Closed)
Patch Set: ++docs Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/media/audio_output.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/shared_memory.h" 12 #include "base/memory/shared_memory.h"
13 #include "base/sync_socket.h" 13 #include "base/sync_socket.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "media/audio/audio_input_ipc.h" 16 #include "media/audio/audio_input_ipc.h"
17 #include "media/audio/audio_output_ipc.h" 17 #include "media/audio/audio_output_ipc.h"
18 #include "media/base/ipc/media_param_traits.h" 18 #include "media/base/ipc/media_param_traits.h"
19 #include "media/base/ipc/media_param_traits_macros.h"
19 #include "media/gpu/ipc/common/media_param_traits.h" 20 #include "media/gpu/ipc/common/media_param_traits.h"
20 #include "url/origin.h" 21 #include "url/origin.h"
21 22
22 #undef IPC_MESSAGE_EXPORT 23 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 24 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 #define IPC_MESSAGE_START AudioMsgStart 25 #define IPC_MESSAGE_START AudioMsgStart
25 26
26 IPC_ENUM_TRAITS_MAX_VALUE(media::OutputDeviceStatus,
27 media::OUTPUT_DEVICE_STATUS_MAX)
28
29 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config) 27 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config)
30 IPC_STRUCT_MEMBER(media::AudioParameters, params) 28 IPC_STRUCT_MEMBER(media::AudioParameters, params)
31 IPC_STRUCT_MEMBER(bool, automatic_gain_control) 29 IPC_STRUCT_MEMBER(bool, automatic_gain_control)
32 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count) 30 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count)
33 IPC_STRUCT_END() 31 IPC_STRUCT_END()
34 32
35 // Messages sent from the browser to the renderer. 33 // Messages sent from the browser to the renderer.
36 34
37 // Tell the renderer process that an audio output device has been authorized 35 // Tell the renderer process that an audio output device has been authorized
38 // for a given stream. The renderer is given the output parameters for the 36 // for a given stream. The renderer is given the output parameters for the
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Set audio volume of the stream specified by stream_id. 121 // 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. 122 // TODO(hclam): change this to vector if we have channel numbers other than 2.
125 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, 123 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume,
126 int /* stream_id */, 124 int /* stream_id */,
127 double /* volume */) 125 double /* volume */)
128 126
129 // Set audio volume of the input stream specified by stream_id. 127 // Set audio volume of the input stream specified by stream_id.
130 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 128 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
131 int /* stream_id */, 129 int /* stream_id */,
132 double /* volume */) 130 double /* volume */)
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/media/audio_output.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698