| 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 #ifndef MEDIA_BASE_LOOPBACK_AUDIO_CONVERTER_H_ | 5 #ifndef MEDIA_BASE_LOOPBACK_AUDIO_CONVERTER_H_ |
| 6 #define MEDIA_BASE_LOOPBACK_AUDIO_CONVERTER_H_ | 6 #define MEDIA_BASE_LOOPBACK_AUDIO_CONVERTER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "media/base/audio_converter.h" | 9 #include "media/base/audio_converter.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 audio_converter_.AddInput(input); | 28 audio_converter_.AddInput(input); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void RemoveInput(AudioConverter::InputCallback* input) { | 31 void RemoveInput(AudioConverter::InputCallback* input) { |
| 32 audio_converter_.RemoveInput(input); | 32 audio_converter_.RemoveInput(input); |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool empty() { return audio_converter_.empty(); } | 35 bool empty() { return audio_converter_.empty(); } |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 double ProvideInput(AudioBus* audio_bus, | 38 double ProvideInput(AudioBus* audio_bus, uint32_t frames_delayed) override; |
| 39 base::TimeDelta buffer_delay) override; | |
| 40 | 39 |
| 41 AudioConverter audio_converter_; | 40 AudioConverter audio_converter_; |
| 42 | 41 |
| 43 DISALLOW_COPY_AND_ASSIGN(LoopbackAudioConverter); | 42 DISALLOW_COPY_AND_ASSIGN(LoopbackAudioConverter); |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 } // namespace media | 45 } // namespace media |
| 47 | 46 |
| 48 #endif // MEDIA_BASE_LOOPBACK_AUDIO_CONVERTER_H_ | 47 #endif // MEDIA_BASE_LOOPBACK_AUDIO_CONVERTER_H_ |
| OLD | NEW |