OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ |
13 | 13 |
14 #include <assert.h> | 14 #include <assert.h> |
15 | 15 |
16 #include "webrtc/base/constructormagic.h" | |
17 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" | 16 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" |
18 #include "webrtc/modules/audio_coding/neteq/time_stretch.h" | 17 #include "webrtc/modules/audio_coding/neteq/time_stretch.h" |
| 18 #include "webrtc/rtc_base/constructormagic.h" |
19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // Forward declarations. | 23 // Forward declarations. |
24 class BackgroundNoise; | 24 class BackgroundNoise; |
25 | 25 |
26 // This class implements the Accelerate operation. Most of the work is done | 26 // This class implements the Accelerate operation. Most of the work is done |
27 // in the base class TimeStretch, which is shared with the PreemptiveExpand | 27 // in the base class TimeStretch, which is shared with the PreemptiveExpand |
28 // operation. In the Accelerate class, the operations that are specific to | 28 // operation. In the Accelerate class, the operations that are specific to |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 AccelerateFactory() {} | 72 AccelerateFactory() {} |
73 virtual ~AccelerateFactory() {} | 73 virtual ~AccelerateFactory() {} |
74 | 74 |
75 virtual Accelerate* Create(int sample_rate_hz, | 75 virtual Accelerate* Create(int sample_rate_hz, |
76 size_t num_channels, | 76 size_t num_channels, |
77 const BackgroundNoise& background_noise) const; | 77 const BackgroundNoise& background_noise) const; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace webrtc | 80 } // namespace webrtc |
81 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ | 81 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_ACCELERATE_H_ |
OLD | NEW |