| 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 | 8 |
| 9 using base::Time; | 9 using base::Time; |
| 10 using base::TimeDelta; | 10 using base::TimeDelta; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 thread_.Stop(); | 70 thread_.Stop(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void FakeAudioInputStream::Close() { | 73 void FakeAudioInputStream::Close() { |
| 74 if (callback_) { | 74 if (callback_) { |
| 75 callback_->OnClose(this); | 75 callback_->OnClose(this); |
| 76 callback_ = NULL; | 76 callback_ = NULL; |
| 77 } | 77 } |
| 78 Release(); // Destoys this object. | 78 Release(); // Destoys this object. |
| 79 } | 79 } |
| 80 |
| 81 double FakeAudioInputStream::GetMaxVolume() { |
| 82 return 0.0; |
| 83 } |
| 84 |
| 85 void FakeAudioInputStream::SetVolume(double volume) {} |
| 86 |
| 87 double FakeAudioInputStream::GetVolume() { |
| 88 return 0.0; |
| 89 } |
| OLD | NEW |