| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/fake_audio_input_stream.h" | 5 #include "media/audio/fake_audio_input_stream.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "media/audio/audio_manager_base.h" | 9 #include "media/audio/audio_manager_base.h" |
| 10 #include "media/base/audio_bus.h" | 10 #include "media/base/audio_bus.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 void FakeAudioInputStream::SetVolume(double volume) { | 197 void FakeAudioInputStream::SetVolume(double volume) { |
| 198 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); | 198 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); |
| 199 } | 199 } |
| 200 | 200 |
| 201 double FakeAudioInputStream::GetVolume() { | 201 double FakeAudioInputStream::GetVolume() { |
| 202 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); | 202 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); |
| 203 return 1.0; | 203 return 1.0; |
| 204 } | 204 } |
| 205 | 205 |
| 206 bool FakeAudioInputStream::IsMuted() { |
| 207 DCHECK(audio_manager_->GetTaskRunner()->BelongsToCurrentThread()); |
| 208 return false; |
| 209 } |
| 210 |
| 206 void FakeAudioInputStream::SetAutomaticGainControl(bool enabled) {} | 211 void FakeAudioInputStream::SetAutomaticGainControl(bool enabled) {} |
| 207 | 212 |
| 208 bool FakeAudioInputStream::GetAutomaticGainControl() { | 213 bool FakeAudioInputStream::GetAutomaticGainControl() { |
| 209 return true; | 214 return true; |
| 210 } | 215 } |
| 211 | 216 |
| 212 // static | 217 // static |
| 213 void FakeAudioInputStream::BeepOnce() { | 218 void FakeAudioInputStream::BeepOnce() { |
| 214 BeepContext* beep_context = g_beep_context.Pointer(); | 219 BeepContext* beep_context = g_beep_context.Pointer(); |
| 215 beep_context->SetBeepOnce(true); | 220 beep_context->SetBeepOnce(true); |
| 216 } | 221 } |
| 217 | 222 |
| 218 } // namespace media | 223 } // namespace media |
| OLD | NEW |