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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual void OnChannelClosing() OVERRIDE; | 110 virtual void OnChannelClosing() OVERRIDE; |
111 virtual void OnDestruct() const OVERRIDE; | 111 virtual void OnDestruct() const OVERRIDE; |
112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
113 | 113 |
114 // AudioInputController::EventHandler implementation. | 114 // AudioInputController::EventHandler implementation. |
115 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE; | 115 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE; |
116 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE; | 116 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE; |
117 virtual void OnError(media::AudioInputController* controller, | 117 virtual void OnError(media::AudioInputController* controller, |
118 media::AudioInputController::ErrorCode error_code) OVERRIDE; | 118 media::AudioInputController::ErrorCode error_code) OVERRIDE; |
119 virtual void OnData(media::AudioInputController* controller, | 119 virtual void OnData(media::AudioInputController* controller, |
120 const media::AudioBus* data) OVERRIDE; | 120 const uint8* data, |
| 121 uint32 size) OVERRIDE; |
121 virtual void OnLog(media::AudioInputController* controller, | 122 virtual void OnLog(media::AudioInputController* controller, |
122 const std::string& message) OVERRIDE; | 123 const std::string& message) OVERRIDE; |
123 | 124 |
124 private: | 125 private: |
125 // TODO(henrika): extend test suite (compare AudioRenderHost) | 126 // TODO(henrika): extend test suite (compare AudioRenderHost) |
126 friend class BrowserThread; | 127 friend class BrowserThread; |
127 friend class TestAudioInputRendererHost; | 128 friend class TestAudioInputRendererHost; |
128 friend class base::DeleteHelper<AudioInputRendererHost>; | 129 friend class base::DeleteHelper<AudioInputRendererHost>; |
129 | 130 |
130 struct AudioEntry; | 131 struct AudioEntry; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 media::UserInputMonitor* user_input_monitor_; | 212 media::UserInputMonitor* user_input_monitor_; |
212 | 213 |
213 scoped_ptr<media::AudioLog> audio_log_; | 214 scoped_ptr<media::AudioLog> audio_log_; |
214 | 215 |
215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 216 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace content | 219 } // namespace content |
219 | 220 |
220 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 221 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |