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

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

Issue 2533443002: fallback to null sink in WebAudioSourceProvider::Initialize() + UMA stats for device status (Closed)
Patch Set: Created 4 years 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 | « no previous file | media/audio/audio_output_device.cc » ('j') | media/audio/audio_output_device.cc » ('J')
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/gpu/ipc/common/media_param_traits.h" 19 #include "media/gpu/ipc/common/media_param_traits.h"
20 #include "url/origin.h" 20 #include "url/origin.h"
21 21
22 #undef IPC_MESSAGE_EXPORT 22 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 #define IPC_MESSAGE_START AudioMsgStart 24 #define IPC_MESSAGE_START AudioMsgStart
25 25
26 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegateState, 26 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegateState,
27 media::AUDIO_INPUT_IPC_DELEGATE_STATE_LAST) 27 media::AUDIO_INPUT_IPC_DELEGATE_STATE_LAST)
28 28
29 IPC_ENUM_TRAITS_MAX_VALUE(media::OutputDeviceStatus, 29 IPC_ENUM_TRAITS_MAX_VALUE(media::OutputDeviceStatus,
30 media::OUTPUT_DEVICE_STATUS_LAST) 30 media::OUTPUT_DEVICE_STATUS_MAX)
31 31
32 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config) 32 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config)
33 IPC_STRUCT_MEMBER(media::AudioParameters, params) 33 IPC_STRUCT_MEMBER(media::AudioParameters, params)
34 IPC_STRUCT_MEMBER(bool, automatic_gain_control) 34 IPC_STRUCT_MEMBER(bool, automatic_gain_control)
35 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count) 35 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count)
36 IPC_STRUCT_END() 36 IPC_STRUCT_END()
37 37
38 // Messages sent from the browser to the renderer. 38 // Messages sent from the browser to the renderer.
39 39
40 // Tell the renderer process that an audio output device has been authorized 40 // Tell the renderer process that an audio output device has been authorized
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Set audio volume of the stream specified by stream_id. 132 // Set audio volume of the stream specified by stream_id.
133 // TODO(hclam): change this to vector if we have channel numbers other than 2. 133 // TODO(hclam): change this to vector if we have channel numbers other than 2.
134 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, 134 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume,
135 int /* stream_id */, 135 int /* stream_id */,
136 double /* volume */) 136 double /* volume */)
137 137
138 // Set audio volume of the input stream specified by stream_id. 138 // Set audio volume of the input stream specified by stream_id.
139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
140 int /* stream_id */, 140 int /* stream_id */,
141 double /* volume */) 141 double /* volume */)
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_output_device.cc » ('j') | media/audio/audio_output_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698