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

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

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/sync_socket.h" 12 #include "base/sync_socket.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/common/media/audio_param_traits.h" 14 #include "content/common/media/audio_param_traits.h"
15 #include "content/common/media/audio_stream_state.h" 15 #include "content/common/media/audio_stream_state.h"
16 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
17 #include "media/audio/audio_buffers_state.h" 17 #include "media/audio/audio_buffers_state.h"
18 #include "media/audio/audio_parameters.h" 18 #include "media/audio/audio_parameters.h"
19 19
20 #undef IPC_MESSAGE_EXPORT 20 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 #define IPC_MESSAGE_START AudioMsgStart 22 #define IPC_MESSAGE_START AudioMsgStart
23 23
24 IPC_ENUM_TRAITS(AudioStreamState) 24 IPC_ENUM_TRAITS(AudioStreamState)
25 25
26 IPC_STRUCT_TRAITS_BEGIN(AudioBuffersState) 26 IPC_STRUCT_TRAITS_BEGIN(media::AudioBuffersState)
27 IPC_STRUCT_TRAITS_MEMBER(pending_bytes) 27 IPC_STRUCT_TRAITS_MEMBER(pending_bytes)
28 IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes) 28 IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes)
29 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
30 30
31 // Messages sent from the browser to the renderer. 31 // Messages sent from the browser to the renderer.
32 32
33 // Tell the renderer process that an audio stream has been created. 33 // Tell the renderer process that an audio stream has been created.
34 // The renderer process is given a shared memory handle for the audio data 34 // The renderer process is given a shared memory handle for the audio data
35 // buffer it shares with the browser process. It is also given a SyncSocket that 35 // buffer it shares with the browser process. It is also given a SyncSocket that
36 // it uses to communicate with the browser process about the state of the 36 // it uses to communicate with the browser process about the state of the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, 84 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted,
85 int /* stream id */, 85 int /* stream id */,
86 std::string /* device_id */) 86 std::string /* device_id */)
87 87
88 // Messages sent from the renderer to the browser. 88 // Messages sent from the renderer to the browser.
89 89
90 // Request that got sent to browser for creating an audio output stream 90 // Request that got sent to browser for creating an audio output stream
91 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, 91 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream,
92 int /* stream_id */, 92 int /* stream_id */,
93 AudioParameters /* params */) 93 media::AudioParameters /* params */)
94 94
95 // Request that got sent to browser for creating an audio input stream 95 // Request that got sent to browser for creating an audio input stream
96 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, 96 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
97 int /* stream_id */, 97 int /* stream_id */,
98 AudioParameters /* params */, 98 media::AudioParameters /* params */,
99 std::string /* device_id */, 99 std::string /* device_id */,
100 bool /* automatic_gain_control */) 100 bool /* automatic_gain_control */)
101 101
102 // Start buffering and play the audio stream specified by stream_id. 102 // Start buffering and play the audio stream specified by stream_id.
103 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, 103 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream,
104 int /* stream_id */) 104 int /* stream_id */)
105 105
106 // Start recording the audio input stream specified by stream_id. 106 // Start recording the audio input stream specified by stream_id.
107 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, 107 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream,
108 int /* stream_id */) 108 int /* stream_id */)
(...skipping 23 matching lines...) Expand all
132 // Set audio volume of the input stream specified by stream_id. 132 // Set audio volume of the input stream specified by stream_id.
133 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 133 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
134 int /* stream_id */, 134 int /* stream_id */,
135 double /* volume */) 135 double /* volume */)
136 136
137 // Start the device referenced by the session_id for the input stream specified 137 // Start the device referenced by the session_id for the input stream specified
138 // by stream_id. 138 // by stream_id.
139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, 139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice,
140 int /* stream_id */, 140 int /* stream_id */,
141 int /* session_id */) 141 int /* session_id */)
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognizer_impl_unittest.cc ('k') | content/common/media/audio_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698