| Index: webrtc/modules/audio_coding/neteq/expand.h
|
| diff --git a/webrtc/modules/audio_coding/neteq/expand.h b/webrtc/modules/audio_coding/neteq/expand.h
|
| index 5fb117d519c684cf8ba8e978228b98ddc8da9c75..3fbafdb97fbaec292dc8248628a33af2b346b6b9 100644
|
| --- a/webrtc/modules/audio_coding/neteq/expand.h
|
| +++ b/webrtc/modules/audio_coding/neteq/expand.h
|
| @@ -23,6 +23,7 @@ namespace webrtc {
|
| // Forward declarations.
|
| class BackgroundNoise;
|
| class RandomVector;
|
| +class StatisticsCalculator;
|
| class SyncBuffer;
|
|
|
| // This class handles extrapolation of audio data from the sync_buffer to
|
| @@ -34,6 +35,7 @@ class Expand {
|
| Expand(BackgroundNoise* background_noise,
|
| SyncBuffer* sync_buffer,
|
| RandomVector* random_vector,
|
| + StatisticsCalculator* statistics,
|
| int fs,
|
| size_t num_channels);
|
|
|
| @@ -86,8 +88,8 @@ class Expand {
|
| // necessary to produce concealment data.
|
| void AnalyzeSignal(int16_t* random_vector);
|
|
|
| - RandomVector* random_vector_;
|
| - SyncBuffer* sync_buffer_;
|
| + RandomVector* const random_vector_;
|
| + SyncBuffer* const sync_buffer_;
|
| bool first_expand_;
|
| const int fs_hz_;
|
| const size_t num_channels_;
|
| @@ -127,13 +129,15 @@ class Expand {
|
|
|
| void UpdateLagIndex();
|
|
|
| - BackgroundNoise* background_noise_;
|
| + BackgroundNoise* const background_noise_;
|
| + StatisticsCalculator* const statistics_;
|
| const size_t overlap_length_;
|
| int16_t max_lag_;
|
| size_t expand_lags_[kNumLags];
|
| int lag_index_direction_;
|
| int current_lag_index_;
|
| bool stop_muting_;
|
| + size_t expand_duration_samples_;
|
| rtc::scoped_ptr<ChannelParameters[]> channel_parameters_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Expand);
|
| @@ -146,6 +150,7 @@ struct ExpandFactory {
|
| virtual Expand* Create(BackgroundNoise* background_noise,
|
| SyncBuffer* sync_buffer,
|
| RandomVector* random_vector,
|
| + StatisticsCalculator* statistics,
|
| int fs,
|
| size_t num_channels) const;
|
| };
|
|
|