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

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

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, 7 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
« no previous file with comments | « media/base/fake_audio_renderer_sink.cc ('k') | media/base/loopback_audio_converter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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_
OLDNEW
« no previous file with comments | « media/base/fake_audio_renderer_sink.cc ('k') | media/base/loopback_audio_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698