Index: content/renderer/media/webrtc_local_audio_renderer.h |
diff --git a/content/renderer/media/webrtc_local_audio_renderer.h b/content/renderer/media/webrtc_local_audio_renderer.h |
index 8e8c96dad8a08add3a35009fb690cbdadf39ade5..86beabb8e38382a5f1a405d8c0b98affe28f16b1 100644 |
--- a/content/renderer/media/webrtc_local_audio_renderer.h |
+++ b/content/renderer/media/webrtc_local_audio_renderer.h |
@@ -13,6 +13,7 @@ |
#include "base/synchronization/lock.h" |
#include "base/threading/thread_checker.h" |
#include "content/common/content_export.h" |
+#include "content/public/renderer/media_stream_audio_sink.h" |
#include "content/renderer/media/media_stream_audio_renderer.h" |
#include "content/renderer/media/webrtc_audio_device_impl.h" |
#include "content/renderer/media/webrtc_local_audio_track.h" |
@@ -34,7 +35,7 @@ class WebRtcAudioCapturer; |
// It also implements media::AudioRendererSink::RenderCallback to render audio |
// data provided from a WebRtcLocalAudioTrack source. |
// When the audio layer in the browser process asks for data to render, this |
-// class provides the data by implementing the WebRtcAudioCapturerSink |
+// class provides the data by implementing the MediaStreamAudioSink |
// interface, i.e., we are a sink seen from the WebRtcAudioCapturer perspective. |
// TODO(henrika): improve by using similar principles as in RTCVideoRenderer |
// which register itself to the video track when the provider is started and |
@@ -42,8 +43,8 @@ class WebRtcAudioCapturer; |
// Tracking this at http://crbug.com/164813. |
class CONTENT_EXPORT WebRtcLocalAudioRenderer |
: NON_EXPORTED_BASE(public MediaStreamAudioRenderer), |
- NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback), |
- NON_EXPORTED_BASE(public WebRtcAudioCapturerSink) { |
+ NON_EXPORTED_BASE(public MediaStreamAudioSink), |
+ NON_EXPORTED_BASE(public media::AudioRendererSink::RenderCallback) { |
public: |
// Creates a local renderer and registers a capturing |source| object. |
// The |source| is owned by the WebRtcAudioDeviceImpl. |
@@ -71,21 +72,16 @@ class CONTENT_EXPORT WebRtcLocalAudioRenderer |
virtual ~WebRtcLocalAudioRenderer(); |
private: |
- // WebRtcAudioCapturerSink implementation. |
+ // MediaStreamAudioSink implementation. |
// Called on the AudioInputDevice worker thread. |
- virtual int CaptureData(const std::vector<int>& channels, |
- const int16* audio_data, |
- int sample_rate, |
- int number_of_channels, |
- int number_of_frames, |
- int audio_delay_milliseconds, |
- int current_volume, |
- bool need_audio_processing, |
- bool key_pressed) OVERRIDE; |
- |
- // Can be called on different user thread. |
- virtual void SetCaptureFormat(const media::AudioParameters& params) OVERRIDE; |
+ virtual void OnData(const int16* audio_data, |
+ int sample_rate, |
+ int number_of_channels, |
+ int number_of_frames) OVERRIDE; |
+ |
+ // Called on the AudioInputDevice worker thread. |
+ virtual void OnSetFormat(const media::AudioParameters& params) OVERRIDE; |
// media::AudioRendererSink::RenderCallback implementation. |
// Render() is called on the AudioOutputDevice thread and OnRenderError() |