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/base/loopback_audio_converter.h" | 5 #include "media/base/loopback_audio_converter.h" |
6 | 6 |
7 namespace media { | 7 namespace media { |
8 | 8 |
9 LoopbackAudioConverter::LoopbackAudioConverter( | 9 LoopbackAudioConverter::LoopbackAudioConverter( |
10 const AudioParameters& input_params, | 10 const AudioParameters& input_params, |
11 const AudioParameters& output_params, | 11 const AudioParameters& output_params, |
12 bool disable_fifo) | 12 bool disable_fifo) |
13 : audio_converter_(input_params, output_params, disable_fifo) {} | 13 : audio_converter_(input_params, output_params, disable_fifo) {} |
14 | 14 |
15 LoopbackAudioConverter::~LoopbackAudioConverter() {} | 15 LoopbackAudioConverter::~LoopbackAudioConverter() {} |
16 | 16 |
17 double LoopbackAudioConverter::ProvideInput(AudioBus* audio_bus, | 17 double LoopbackAudioConverter::ProvideInput(AudioBus* audio_bus, |
18 base::TimeDelta buffer_delay) { | 18 uint32_t frames_delayed) { |
19 audio_converter_.ConvertWithDelay(buffer_delay, audio_bus); | 19 audio_converter_.ConvertWithDelay(frames_delayed, audio_bus); |
20 return 1.0; | 20 return 1.0; |
21 } | 21 } |
22 | 22 |
23 } // namespace media | 23 } // namespace media |
OLD | NEW |