| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // starts successfully, it will trigger OnDeviceStarted() callback. | 118 // starts successfully, it will trigger OnDeviceStarted() callback. |
| 119 void OnStartDevice(int stream_id, int session_id); | 119 void OnStartDevice(int stream_id, int session_id); |
| 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 int shared_memory_count); |
| 129 | 130 |
| 130 // Track that the data for the audio stream referenced by |stream_id| is | 131 // 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 // consumed by an entity in the render view referenced by |render_view_id|. |
| 132 void OnAssociateStreamWithConsumer(int stream_id, int render_view_id); | 133 void OnAssociateStreamWithConsumer(int stream_id, int render_view_id); |
| 133 | 134 |
| 134 // Record the audio input stream referenced by |stream_id|. | 135 // Record the audio input stream referenced by |stream_id|. |
| 135 void OnRecordStream(int stream_id); | 136 void OnRecordStream(int stream_id); |
| 136 | 137 |
| 137 // Close the audio stream referenced by |stream_id|. | 138 // Close the audio stream referenced by |stream_id|. |
| 138 void OnCloseStream(int stream_id); | 139 void OnCloseStream(int stream_id); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 194 |
| 194 // A map of session IDs to audio session sources. | 195 // A map of session IDs to audio session sources. |
| 195 SessionEntryMap session_entries_; | 196 SessionEntryMap session_entries_; |
| 196 | 197 |
| 197 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 198 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace content | 201 } // namespace content |
| 201 | 202 |
| 202 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 203 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
| OLD | NEW |