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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // Gets information about the paired output device. Returns true if such a | 101 // Gets information about the paired output device. Returns true if such a |
102 // device exists. | 102 // device exists. |
103 bool GetPairedOutputParameters(int* session_id, | 103 bool GetPairedOutputParameters(int* session_id, |
104 int* output_sample_rate, | 104 int* output_sample_rate, |
105 int* output_frames_per_buffer) const; | 105 int* output_frames_per_buffer) const; |
106 | 106 |
107 const std::string& device_id() const { return device_id_; } | 107 const std::string& device_id() const { return device_id_; } |
108 int session_id() const { return session_id_; } | 108 int session_id() const { return session_id_; } |
109 | 109 |
110 WebKit::WebAudioSourceProvider* audio_source_provider() const { | 110 blink::WebAudioSourceProvider* audio_source_provider() const { |
111 return source_provider_.get(); | 111 return source_provider_.get(); |
112 } | 112 } |
113 | 113 |
114 // Stops recording audio. | 114 // Stops recording audio. |
115 void Stop(); | 115 void Stop(); |
116 | 116 |
117 protected: | 117 protected: |
118 friend class base::RefCountedThreadSafe<WebRtcAudioCapturer>; | 118 friend class base::RefCountedThreadSafe<WebRtcAudioCapturer>; |
119 WebRtcAudioCapturer(); | 119 WebRtcAudioCapturer(); |
120 virtual ~WebRtcAudioCapturer(); | 120 virtual ~WebRtcAudioCapturer(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 int output_sample_rate_; | 193 int output_sample_rate_; |
194 int output_frames_per_buffer_; | 194 int output_frames_per_buffer_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); | 196 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace content | 199 } // namespace content |
200 | 200 |
201 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ | 201 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ |
OLD | NEW |