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

Unified Diff: media/base/fake_audio_renderer_sink.h

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing guidou's comments Created 4 years, 9 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: media/base/fake_audio_renderer_sink.h
diff --git a/media/base/fake_audio_renderer_sink.h b/media/base/fake_audio_renderer_sink.h
index afdd01870b255dbf755fadf24ef006b8137341c6..b69c1b477c36dfa0acc8afb43132cf2b399f8ab7 100644
--- a/media/base/fake_audio_renderer_sink.h
+++ b/media/base/fake_audio_renderer_sink.h
@@ -12,11 +12,10 @@
#include "base/macros.h"
#include "media/audio/audio_parameters.h"
#include "media/base/audio_renderer_sink.h"
+#include "media/base/output_device_info.h"
namespace media {
-class FakeOutputDevice;
-
class FakeAudioRendererSink : public AudioRendererSink {
public:
enum State {
@@ -37,7 +36,7 @@ class FakeAudioRendererSink : public AudioRendererSink {
void Pause() override;
void Play() override;
bool SetVolume(double volume) override;
- OutputDevice* GetOutputDevice() override;
+ OutputDeviceInfo GetOutputDeviceInfo() override;
// Attempts to call Render() on the callback provided to
// Initialize() with |dest| and |audio_delay_milliseconds|.
@@ -61,7 +60,7 @@ class FakeAudioRendererSink : public AudioRendererSink {
State state_;
RenderCallback* callback_;
- scoped_ptr<FakeOutputDevice> output_device_;
+ OutputDeviceInfo output_device_info_;
DISALLOW_COPY_AND_ASSIGN(FakeAudioRendererSink);
};

Powered by Google App Engine
This is Rietveld 408576698