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

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

Issue 10830268: Allow audio system to handle synchronized low-latency audio I/O (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, 77 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume,
78 int /* stream id */, 78 int /* stream id */,
79 double /* volume */) 79 double /* volume */)
80 80
81 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted, 81 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyDeviceStarted,
82 int /* stream id */, 82 int /* stream id */,
83 std::string /* device_id */) 83 std::string /* device_id */)
84 84
85 // Messages sent from the renderer to the browser. 85 // Messages sent from the renderer to the browser.
86 86
87 // Request that got sent to browser for creating an audio output stream 87 // Request that got sent to browser for creating an audio output stream
henrika (OOO until Aug 14) 2012/09/11 21:44:48 Modify comment perhaps?
88 IPC_MESSAGE_CONTROL2(AudioHostMsg_CreateStream, 88 IPC_MESSAGE_CONTROL3(AudioHostMsg_CreateStream,
89 int /* stream_id */, 89 int /* stream_id */,
90 media::AudioParameters /* params */) 90 media::AudioParameters, /* params */
91 int /* input_channels */)
91 92
92 // Request that got sent to browser for creating an audio input stream 93 // Request that got sent to browser for creating an audio input stream
93 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream, 94 IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
94 int /* stream_id */, 95 int /* stream_id */,
95 media::AudioParameters /* params */, 96 media::AudioParameters /* params */,
96 std::string /* device_id */, 97 std::string /* device_id */,
97 bool /* automatic_gain_control */) 98 bool /* automatic_gain_control */)
98 99
99 // Start buffering and play the audio stream specified by stream_id. 100 // Start buffering and play the audio stream specified by stream_id.
100 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream, 101 IPC_MESSAGE_CONTROL1(AudioHostMsg_PlayStream,
(...skipping 28 matching lines...) Expand all
129 // Set audio volume of the input stream specified by stream_id. 130 // Set audio volume of the input stream specified by stream_id.
130 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, 131 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume,
131 int /* stream_id */, 132 int /* stream_id */,
132 double /* volume */) 133 double /* volume */)
133 134
134 // Start the device referenced by the session_id for the input stream specified 135 // Start the device referenced by the session_id for the input stream specified
135 // by stream_id. 136 // by stream_id.
136 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice, 137 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_StartDevice,
137 int /* stream_id */, 138 int /* stream_id */,
138 int /* session_id */) 139 int /* session_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698