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

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

Issue 10836025: Part 1: Plumb render view ID to render host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 int /* stream id */, 83 int /* stream id */,
84 double /* volume */) 84 double /* volume */)
85 85
86 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, 86 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted,
87 int /* stream id */, 87 int /* stream id */,
88 std::string /* device_id */) 88 std::string /* device_id */)
89 89
90 // Messages sent from the renderer to the browser. 90 // Messages sent from the renderer to the browser.
91 91
92 // Request that got sent to browser for creating an audio output stream 92 // Request that got sent to browser for creating an audio output stream
93 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, 93 IPC_MESSAGE_CONTROL3(AudioHostMsg_CreateStream,
94 int /* render view id */,
94 int /* stream_id */, 95 int /* stream_id */,
95 media::AudioParameters /* params */) 96 media::AudioParameters /* params */)
96 97
97 // Request that got sent to browser for creating an audio input stream 98 // Request that got sent to browser for creating an audio input stream
98 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, 99 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
99 int /* stream_id */, 100 int /* stream_id */,
100 media::AudioParameters /* params */, 101 media::AudioParameters /* params */,
101 std::string /* device_id */, 102 std::string /* device_id */,
102 bool /* automatic_gain_control */) 103 bool /* automatic_gain_control */)
103 104
104 // Start buffering and play the audio stream specified by stream_id. 105 // Start buffering and play the audio stream specified by stream_id.
105 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, 106 IPC_MESSAGE_CONTROL2(AudioHostMsg_PlayStream,
107 int /* render view id */,
106 int /* stream_id */) 108 int /* stream_id */)
107 109
108 // Start recording the audio input stream specified by stream_id. 110 // Start recording the audio input stream specified by stream_id.
109 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream, 111 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_RecordStream,
110 int /* stream_id */) 112 int /* stream_id */)
111 113
112 // Pause the audio stream specified by stream_id. 114 // Pause the audio stream specified by stream_id.
113 IPC_MESSAGE_CONTROL1(AudioHostMsg_PauseStream, 115 IPC_MESSAGE_CONTROL2(AudioHostMsg_PauseStream,
116 int /* render view id */,
114 int /* stream_id */) 117 int /* stream_id */)
115 118
116 // Discard all buffered audio data for the specified audio stream. 119 // Discard all buffered audio data for the specified audio stream.
117 IPC_MESSAGE_CONTROL1(AudioHostMsg_FlushStream, 120 IPC_MESSAGE_CONTROL2(AudioHostMsg_FlushStream,
121 int /* render view id */,
118 int /* stream_id */) 122 int /* stream_id */)
119 123
120 // Close an audio stream specified by stream_id. 124 // Close an audio stream specified by stream_id.
121 IPC_MESSAGE_CONTROL1(AudioHostMsg_CloseStream, 125 IPC_MESSAGE_CONTROL2(AudioHostMsg_CloseStream,
126 int /* render view id */,
122 int /* stream_id */) 127 int /* stream_id */)
123 128
124 // Close an audio input stream specified by stream_id. 129 // Close an audio input stream specified by stream_id.
125 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream, 130 IPC_MESSAGE_CONTROL1(AudioInputHostMsg_CloseStream,
126 int /* stream_id */) 131 int /* stream_id */)
127 132
128 // Set audio volume of the stream specified by stream_id. 133 // Set audio volume of the stream specified by stream_id.
129 // TODO(hclam): change this to vector if we have channel numbers other than 2. 134 // TODO(hclam): change this to vector if we have channel numbers other than 2.
130 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, 135 IPC_MESSAGE_CONTROL3(AudioHostMsg_SetVolume,
136 int /* render view id */,
131 int /* stream_id */, 137 int /* stream_id */,
132 double /* volume */) 138 double /* volume */)
133 139
134 // Set audio volume of the input stream specified by stream_id. 140 // Set audio volume of the input stream specified by stream_id.
135 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
136 int /* stream_id */, 142 int /* stream_id */,
137 double /* volume */) 143 double /* volume */)
138 144
139 // Start the device referenced by the session_id for the input stream specified 145 // Start the device referenced by the session_id for the input stream specified
140 // by stream_id. 146 // by stream_id.
141 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, 147 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice,
142 int /* stream_id */, 148 int /* stream_id */,
143 int /* session_id */) 149 int /* session_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698