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_MULTI_CHANNEL_RESAMPLER_H_ | 5 #ifndef MEDIA_BASE_MULTI_CHANNEL_RESAMPLER_H_ |
6 #define MEDIA_BASE_MULTI_CHANNEL_RESAMPLER_H_ | 6 #define MEDIA_BASE_MULTI_CHANNEL_RESAMPLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
13 #include "media/base/sinc_resampler.h" | 14 #include "media/base/sinc_resampler.h" |
14 | 15 |
15 namespace media { | 16 namespace media { |
16 class AudioBus; | 17 class AudioBus; |
17 | 18 |
18 // MultiChannelResampler is a multi channel wrapper for SincResampler; allowing | 19 // MultiChannelResampler is a multi channel wrapper for SincResampler; allowing |
19 // high quality sample rate conversion of multiple channels at once. | 20 // high quality sample rate conversion of multiple channels at once. |
20 class MEDIA_EXPORT MultiChannelResampler { | 21 class MEDIA_EXPORT MultiChannelResampler { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // The number of output frames that have successfully been processed during | 79 // The number of output frames that have successfully been processed during |
79 // the current Resample() call. | 80 // the current Resample() call. |
80 int output_frames_ready_; | 81 int output_frames_ready_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(MultiChannelResampler); | 83 DISALLOW_COPY_AND_ASSIGN(MultiChannelResampler); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace media | 86 } // namespace media |
86 | 87 |
87 #endif // MEDIA_BASE_MULTI_CHANNEL_RESAMPLER_H_ | 88 #endif // MEDIA_BASE_MULTI_CHANNEL_RESAMPLER_H_ |
OLD | NEW |