Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 10537121: Adds AudioDevice factory for all audio clients in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_audio_device_impl.h
diff --git a/content/renderer/media/webrtc_audio_device_impl.h b/content/renderer/media/webrtc_audio_device_impl.h
index 6d4442ade71d561f6db0e78db942babeae2263ee..8c53248f3da46a6744f9bf6426e4c800a8ad7fdd 100644
--- a/content/renderer/media/webrtc_audio_device_impl.h
+++ b/content/renderer/media/webrtc_audio_device_impl.h
@@ -16,8 +16,8 @@
#include "base/message_loop_proxy.h"
#include "base/time.h"
#include "content/common/content_export.h"
-#include "content/renderer/media/audio_device.h"
#include "content/renderer/media/audio_input_device.h"
+#include "media/base/audio_renderer_sink.h"
#include "third_party/webrtc/modules/audio_device/main/interface/audio_device.h"
// A WebRtcAudioDeviceImpl instance implements the abstract interface
@@ -220,7 +220,7 @@ class CONTENT_EXPORT WebRtcAudioDeviceImpl
// We need this one to support runnable method tasks.
static bool ImplementsThreadSafeReferenceCounting() { return true; }
- // AudioDevice::RenderCallback implementation.
+ // media::AudioRendererSink::RenderCallback implementation.
virtual int Render(const std::vector<float*>& audio_data,
int number_of_frames,
int audio_delay_milliseconds) OVERRIDE;
@@ -407,7 +407,7 @@ class CONTENT_EXPORT WebRtcAudioDeviceImpl
scoped_refptr<AudioInputDevice> audio_input_device_;
// Provides access to the native audio output layer in the browser process.
- scoped_refptr<AudioDevice> audio_output_device_;
+ scoped_refptr<media::AudioRendererSink> audio_output_device_;
// Weak reference to the audio callback.
// The webrtc client defines |audio_transport_callback_| by calling
« no previous file with comments | « content/renderer/media/renderer_webaudiodevice_impl.cc ('k') | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698