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

Side by Side Diff: content/browser/renderer_host/media/audio_input_renderer_host.h

Issue 11359196: Associate audio streams with their source/destination RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Andrew's review comments. Created 8 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 | 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 // AudioInputRendererHost serves audio related requests from audio capturer 5 // AudioInputRendererHost serves audio related requests from audio capturer
6 // which lives inside the render process and provide access to audio hardware. 6 // which lives inside the render process and provide access to audio hardware.
7 // 7 //
8 // Create stream sequence (AudioInputController = AIC): 8 // Create stream sequence (AudioInputController = AIC):
9 // 9 //
10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency -> 10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency ->
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // Audio related IPC message handlers. 121 // Audio related IPC message handlers.
122 // Creates an audio input stream with the specified format. If this call is 122 // Creates an audio input stream with the specified format. If this call is
123 // successful this object would keep an internal entry of the stream for the 123 // successful this object would keep an internal entry of the stream for the
124 // required properties. 124 // required properties.
125 void OnCreateStream(int stream_id, 125 void OnCreateStream(int stream_id,
126 const media::AudioParameters& params, 126 const media::AudioParameters& params,
127 const std::string& device_id, 127 const std::string& device_id,
128 bool automatic_gain_control); 128 bool automatic_gain_control);
129 129
130 // Track that the data for the audio stream referenced by |stream_id| is
131 // consumed by an entity in the render view referenced by |render_view_id|.
132 void OnAssociateStreamWithConsumer(int stream_id, int render_view_id);
133
130 // Record the audio input stream referenced by |stream_id|. 134 // Record the audio input stream referenced by |stream_id|.
131 void OnRecordStream(int stream_id); 135 void OnRecordStream(int stream_id);
132 136
133 // Close the audio stream referenced by |stream_id|. 137 // Close the audio stream referenced by |stream_id|.
134 void OnCloseStream(int stream_id); 138 void OnCloseStream(int stream_id);
135 139
136 // Set the volume of the audio stream referenced by |stream_id|. 140 // Set the volume of the audio stream referenced by |stream_id|.
137 void OnSetVolume(int stream_id, double volume); 141 void OnSetVolume(int stream_id, double volume);
138 142
139 // Complete the process of creating an audio input stream. This will set up 143 // Complete the process of creating an audio input stream. This will set up
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 193
190 // A map of session IDs to audio session sources. 194 // A map of session IDs to audio session sources.
191 SessionEntryMap session_entries_; 195 SessionEntryMap session_entries_;
192 196
193 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); 197 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost);
194 }; 198 };
195 199
196 } // namespace content 200 } // namespace content
197 201
198 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 202 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698