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_EXPAND_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_EXPAND_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_EXPAND_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_EXPAND_H_ |
13 | 13 |
14 #include <assert.h> | 14 #include <assert.h> |
| 15 #include <memory> |
15 | 16 |
16 #include "webrtc/base/constructormagic.h" | 17 #include "webrtc/base/constructormagic.h" |
17 #include "webrtc/base/scoped_ptr.h" | |
18 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" | 18 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.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 class RandomVector; | 25 class RandomVector; |
26 class StatisticsCalculator; | 26 class StatisticsCalculator; |
27 class SyncBuffer; | 27 class SyncBuffer; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 BackgroundNoise* const background_noise_; | 132 BackgroundNoise* const background_noise_; |
133 StatisticsCalculator* const statistics_; | 133 StatisticsCalculator* const statistics_; |
134 const size_t overlap_length_; | 134 const size_t overlap_length_; |
135 size_t max_lag_; | 135 size_t max_lag_; |
136 size_t expand_lags_[kNumLags]; | 136 size_t expand_lags_[kNumLags]; |
137 int lag_index_direction_; | 137 int lag_index_direction_; |
138 int current_lag_index_; | 138 int current_lag_index_; |
139 bool stop_muting_; | 139 bool stop_muting_; |
140 size_t expand_duration_samples_; | 140 size_t expand_duration_samples_; |
141 rtc::scoped_ptr<ChannelParameters[]> channel_parameters_; | 141 std::unique_ptr<ChannelParameters[]> channel_parameters_; |
142 | 142 |
143 RTC_DISALLOW_COPY_AND_ASSIGN(Expand); | 143 RTC_DISALLOW_COPY_AND_ASSIGN(Expand); |
144 }; | 144 }; |
145 | 145 |
146 struct ExpandFactory { | 146 struct ExpandFactory { |
147 ExpandFactory() {} | 147 ExpandFactory() {} |
148 virtual ~ExpandFactory() {} | 148 virtual ~ExpandFactory() {} |
149 | 149 |
150 virtual Expand* Create(BackgroundNoise* background_noise, | 150 virtual Expand* Create(BackgroundNoise* background_noise, |
151 SyncBuffer* sync_buffer, | 151 SyncBuffer* sync_buffer, |
152 RandomVector* random_vector, | 152 RandomVector* random_vector, |
153 StatisticsCalculator* statistics, | 153 StatisticsCalculator* statistics, |
154 int fs, | 154 int fs, |
155 size_t num_channels) const; | 155 size_t num_channels) const; |
156 }; | 156 }; |
157 | 157 |
158 } // namespace webrtc | 158 } // namespace webrtc |
159 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_EXPAND_H_ | 159 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_EXPAND_H_ |
OLD | NEW |