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 uint8* data, | 120 const media::AudioBus* data) OVERRIDE; |
121 uint32 size) OVERRIDE; | |
122 virtual void OnLog(media::AudioInputController* controller, | 121 virtual void OnLog(media::AudioInputController* controller, |
123 const std::string& message) OVERRIDE; | 122 const std::string& message) OVERRIDE; |
124 | 123 |
125 private: | 124 private: |
126 // TODO(henrika): extend test suite (compare AudioRenderHost) | 125 // TODO(henrika): extend test suite (compare AudioRenderHost) |
127 friend class BrowserThread; | 126 friend class BrowserThread; |
128 friend class TestAudioInputRendererHost; | 127 friend class TestAudioInputRendererHost; |
129 friend class base::DeleteHelper<AudioInputRendererHost>; | 128 friend class base::DeleteHelper<AudioInputRendererHost>; |
130 | 129 |
131 struct AudioEntry; | 130 struct AudioEntry; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 media::UserInputMonitor* user_input_monitor_; | 211 media::UserInputMonitor* user_input_monitor_; |
213 | 212 |
214 scoped_ptr<media::AudioLog> audio_log_; | 213 scoped_ptr<media::AudioLog> audio_log_; |
215 | 214 |
216 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
217 }; | 216 }; |
218 | 217 |
219 } // namespace content | 218 } // namespace content |
220 | 219 |
221 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 220 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |