Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |