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

Unified Diff: media/audio/clockless_audio_sink.cc

Issue 1184473002: Add support for the audio-output-device switching IPC mechanism to the renderer lower layers (media… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 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: media/audio/clockless_audio_sink.cc
diff --git a/media/audio/clockless_audio_sink.cc b/media/audio/clockless_audio_sink.cc
index 44e9adb4451f0c609e5db94f77a7b87c6e860f64..4f593ffb71550d0747fafdf1a143e7c99e7c7918 100644
--- a/media/audio/clockless_audio_sink.cc
+++ b/media/audio/clockless_audio_sink.cc
@@ -4,6 +4,9 @@
#include "media/audio/clockless_audio_sink.h"
+#include "base/bind.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/simple_thread.h"
namespace media {
@@ -105,4 +108,11 @@ bool ClocklessAudioSink::SetVolume(double volume) {
return volume == 0.0;
}
+void ClocklessAudioSink::SwitchOutputDevice(
+ const std::string& device_id,
+ const GURL& security_origin,
+ const SwitchOutputDeviceCB& callback) {
+ callback.Run(SWITCH_OUTPUT_DEVICE_RESULT_ERROR_OBSOLETE);
+}
+
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698