Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: media/base/loopback_audio_converter.cc

Issue 2004283002: AudioConverter: Express delay in frames rather than msec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed files & removed rounding Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « media/base/loopback_audio_converter.h ('k') | media/blink/webaudiosourceprovider_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698