OLD | NEW |
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 // Set the volume of the audio stream referenced by |stream_id|. | 154 // Set the volume of the audio stream referenced by |stream_id|. |
155 void OnSetVolume(int stream_id, double volume); | 155 void OnSetVolume(int stream_id, double volume); |
156 | 156 |
157 // Complete the process of creating an audio input stream. This will set up | 157 // Complete the process of creating an audio input stream. This will set up |
158 // the shared memory or shared socket in low latency mode. | 158 // the shared memory or shared socket in low latency mode. |
159 void DoCompleteCreation(media::AudioInputController* controller); | 159 void DoCompleteCreation(media::AudioInputController* controller); |
160 | 160 |
161 // Send a state change message to the renderer. | 161 // Send a state change message to the renderer. |
162 void DoSendRecordingMessage(media::AudioInputController* controller); | 162 void DoSendRecordingMessage(media::AudioInputController* controller); |
163 void DoSendPausedMessage(media::AudioInputController* controller); | |
164 | 163 |
165 // Handle error coming from audio stream. | 164 // Handle error coming from audio stream. |
166 void DoHandleError(media::AudioInputController* controller, int error_code); | 165 void DoHandleError(media::AudioInputController* controller, int error_code); |
167 | 166 |
168 // Send an error message to the renderer. | 167 // Send an error message to the renderer. |
169 void SendErrorMessage(int stream_id); | 168 void SendErrorMessage(int stream_id); |
170 | 169 |
171 // Delete all audio entry and all audio streams | 170 // Delete all audio entry and all audio streams |
172 void DeleteEntries(); | 171 void DeleteEntries(); |
173 | 172 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 AudioEntryMap audio_entries_; | 207 AudioEntryMap audio_entries_; |
209 | 208 |
210 // A map of session IDs to audio session sources. | 209 // A map of session IDs to audio session sources. |
211 typedef std::map<int, int> SessionEntryMap; | 210 typedef std::map<int, int> SessionEntryMap; |
212 SessionEntryMap session_entries_; | 211 SessionEntryMap session_entries_; |
213 | 212 |
214 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 213 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
215 }; | 214 }; |
216 | 215 |
217 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 216 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |