OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // Modified from the Chromium original here: | 11 // Modified from the Chromium original here: |
12 // src/media/base/sinc_resampler.h | 12 // src/media/base/sinc_resampler.h |
13 | 13 |
14 #ifndef WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ | 14 #ifndef WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ |
15 #define WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ | 15 #define WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ |
16 | 16 |
17 #include <memory> | 17 #include <memory> |
18 | 18 |
19 #include "webrtc/rtc_base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/rtc_base/gtest_prod_util.h" | 20 #include "webrtc/base/gtest_prod_util.h" |
21 #include "webrtc/system_wrappers/include/aligned_malloc.h" | 21 #include "webrtc/system_wrappers/include/aligned_malloc.h" |
22 #include "webrtc/typedefs.h" | 22 #include "webrtc/typedefs.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 // Callback class for providing more data into the resampler. Expects |frames| | 26 // Callback class for providing more data into the resampler. Expects |frames| |
27 // of data to be rendered into |destination|; zero padded if not enough frames | 27 // of data to be rendered into |destination|; zero padded if not enough frames |
28 // are available to satisfy the request. | 28 // are available to satisfy the request. |
29 class SincResamplerCallback { | 29 class SincResamplerCallback { |
30 public: | 30 public: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 float* const r2_; | 162 float* const r2_; |
163 float* r3_; | 163 float* r3_; |
164 float* r4_; | 164 float* r4_; |
165 | 165 |
166 RTC_DISALLOW_COPY_AND_ASSIGN(SincResampler); | 166 RTC_DISALLOW_COPY_AND_ASSIGN(SincResampler); |
167 }; | 167 }; |
168 | 168 |
169 } // namespace webrtc | 169 } // namespace webrtc |
170 | 170 |
171 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ | 171 #endif // WEBRTC_COMMON_AUDIO_RESAMPLER_SINC_RESAMPLER_H_ |
OLD | NEW |