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

Unified Diff: media/base/fake_audio_renderer_sink.cc

Issue 1122393004: Add support for switching the audio output device for HTMLMediaElements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to MediaPlayers so that they invoke callbacks in the correct threads. First complete implem… Created 5 years, 7 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.cc
diff --git a/media/base/fake_audio_renderer_sink.cc b/media/base/fake_audio_renderer_sink.cc
index d42db6de1b9a7eba16f42c4417c56aa218112576..6d67a5b86ea6c1000cb4de1f6e84e378fb5d2080 100644
--- a/media/base/fake_audio_renderer_sink.cc
+++ b/media/base/fake_audio_renderer_sink.cc
@@ -52,6 +52,12 @@ bool FakeAudioRendererSink::SetVolume(double volume) {
return true;
}
+void FakeAudioRendererSink::SwitchOutputDevice(
+ const std::string& device_id,
+ const GURL& security_origin,
+ const base::Callback<void(int)>& callback) { }
miu 2015/06/03 21:01:01 ditto: Run the callback to "fake" that something h
+
+
bool FakeAudioRendererSink::Render(AudioBus* dest, int audio_delay_milliseconds,
int* frames_written) {
if (state_ != kPlaying)

Powered by Google App Engine
This is Rietveld 408576698