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

Side by Side Diff: media/audio/clockless_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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/clockless_audio_sink.h" 5 #include "media/audio/clockless_audio_sink.h"
6 6
7 #include "base/threading/simple_thread.h" 7 #include "base/threading/simple_thread.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "media/base/audio_renderer_sink.h" 9 #include "media/base/audio_renderer_sink.h"
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 playing_ = false; 101 playing_ = false;
102 playback_time_ = thread_->Stop(); 102 playback_time_ = thread_->Stop();
103 } 103 }
104 104
105 bool ClocklessAudioSink::SetVolume(double volume) { 105 bool ClocklessAudioSink::SetVolume(double volume) {
106 // Audio is always muted. 106 // Audio is always muted.
107 return volume == 0.0; 107 return volume == 0.0;
108 } 108 }
109 109
110 void ClocklessAudioSink::SwitchOutputDevice(
111 const std::string& device_id,
112 const GURL& security_origin,
113 const base::Callback<void(int)>& callback) { }
miu 2015/06/03 21:01:01 ditto: Run the callback with a failure code here.
114
110 } // namespace media 115 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698