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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/threading/simple_thread.h" | 10 #include "base/threading/simple_thread.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 bool ClocklessAudioSink::SetVolume(double volume) { | 127 bool ClocklessAudioSink::SetVolume(double volume) { |
128 // Audio is always muted. | 128 // Audio is always muted. |
129 return volume == 0.0; | 129 return volume == 0.0; |
130 } | 130 } |
131 | 131 |
132 OutputDeviceInfo ClocklessAudioSink::GetOutputDeviceInfo() { | 132 OutputDeviceInfo ClocklessAudioSink::GetOutputDeviceInfo() { |
133 return device_info_; | 133 return device_info_; |
134 } | 134 } |
135 | 135 |
| 136 bool ClocklessAudioSink::CurrentThreadIsRenderingThread() { |
| 137 NOTIMPLEMENTED(); |
| 138 return false; |
| 139 } |
| 140 |
136 void ClocklessAudioSink::StartAudioHashForTesting() { | 141 void ClocklessAudioSink::StartAudioHashForTesting() { |
137 DCHECK(!initialized_); | 142 DCHECK(!initialized_); |
138 hashing_ = true; | 143 hashing_ = true; |
139 } | 144 } |
140 | 145 |
141 std::string ClocklessAudioSink::GetAudioHashForTesting() { | 146 std::string ClocklessAudioSink::GetAudioHashForTesting() { |
142 return thread_ && hashing_ ? thread_->GetAudioHash() : std::string(); | 147 return thread_ && hashing_ ? thread_->GetAudioHash() : std::string(); |
143 } | 148 } |
144 | 149 |
145 } // namespace media | 150 } // namespace media |
OLD | NEW |