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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 const StreamDeviceInfo& device_info, | 129 const StreamDeviceInfo& device_info, |
130 const blink::WebMediaConstraints& constraints, | 130 const blink::WebMediaConstraints& constraints, |
131 WebRtcAudioDeviceImpl* audio_device, | 131 WebRtcAudioDeviceImpl* audio_device, |
132 MediaStreamAudioSource* audio_source); | 132 MediaStreamAudioSource* audio_source); |
133 | 133 |
134 // AudioCapturerSource::CaptureCallback implementation. | 134 // AudioCapturerSource::CaptureCallback implementation. |
135 // Called on the AudioInputDevice audio thread. | 135 // Called on the AudioInputDevice audio thread. |
136 virtual void Capture(const media::AudioBus* audio_source, | 136 virtual void Capture(const media::AudioBus* audio_source, |
137 int audio_delay_milliseconds, | 137 int audio_delay_milliseconds, |
138 double volume, | 138 double volume, |
139 bool key_pressed) OVERRIDE; | 139 bool key_pressed) override; |
140 virtual void OnCaptureError() OVERRIDE; | 140 virtual void OnCaptureError() override; |
141 | 141 |
142 // Initializes the default audio capturing source using the provided render | 142 // Initializes the default audio capturing source using the provided render |
143 // view id and device information. Return true if success, otherwise false. | 143 // view id and device information. Return true if success, otherwise false. |
144 bool Initialize(); | 144 bool Initialize(); |
145 | 145 |
146 // SetCapturerSource() is called if the client on the source side desires to | 146 // SetCapturerSource() is called if the client on the source side desires to |
147 // provide their own captured audio data. Client is responsible for calling | 147 // provide their own captured audio data. Client is responsible for calling |
148 // Start() on its own source to have the ball rolling. | 148 // Start() on its own source to have the ball rolling. |
149 // Called on the main render thread. | 149 // Called on the main render thread. |
150 void SetCapturerSource( | 150 void SetCapturerSource( |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 // Records when the last time audio power level is logged. | 223 // Records when the last time audio power level is logged. |
224 base::TimeTicks last_audio_level_log_time_; | 224 base::TimeTicks last_audio_level_log_time_; |
225 | 225 |
226 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); | 226 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); |
227 }; | 227 }; |
228 | 228 |
229 } // namespace content | 229 } // namespace content |
230 | 230 |
231 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ | 231 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ |
OLD | NEW |