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

Unified Diff: media/audio/null_audio_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/audio/null_audio_sink.cc
diff --git a/media/audio/null_audio_sink.cc b/media/audio/null_audio_sink.cc
index e737c437c9c8d47a2af1ae90a805cfa1f49bb4ba..c15356971303a6fcf780a0820e9b10247c38397a 100644
--- a/media/audio/null_audio_sink.cc
+++ b/media/audio/null_audio_sink.cc
@@ -70,6 +70,14 @@ bool NullAudioSink::SetVolume(double volume) {
return volume == 0.0;
}
+void NullAudioSink::SwitchOutputDevice(
+ const std::string &device_id,
+ const GURL& security_origin,
+ const base::Callback<void(int)>& callback) {
+ DCHECK(task_runner_->BelongsToCurrentThread());
+}
miu 2015/06/03 21:01:01 ditto: Run callback. Maybe the NullAudioSink shou
+
+
void NullAudioSink::CallRender() {
DCHECK(task_runner_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698