Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: webrtc/modules/audio_coding/neteq/background_noise.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/background_noise.h
diff --git a/webrtc/modules/audio_coding/neteq/background_noise.h b/webrtc/modules/audio_coding/neteq/background_noise.h
index baf1818dae4efc8252e9a5bb1099f74d7ce9e58b..9ad12b76c0a759e0763729bbc59d89bc78228105 100644
--- a/webrtc/modules/audio_coding/neteq/background_noise.h
+++ b/webrtc/modules/audio_coding/neteq/background_noise.h
@@ -29,7 +29,7 @@ class BackgroundNoise {
public:
// TODO(hlundin): For 48 kHz support, increase kMaxLpcOrder to 10.
// Will work anyway, but probably sound a little worse.
- static const int kMaxLpcOrder = 8; // 32000 / 8000 + 4.
+ static const size_t kMaxLpcOrder = 8; // 32000 / 8000 + 4.
explicit BackgroundNoise(size_t num_channels);
virtual ~BackgroundNoise();
@@ -76,9 +76,9 @@ class BackgroundNoise {
private:
static const int kThresholdIncrement = 229; // 0.0035 in Q16.
- static const int kVecLen = 256;
+ static const size_t kVecLen = 256;
static const int kLogVecLen = 8; // log2(kVecLen).
- static const int kResidualLength = 64;
+ static const size_t kResidualLength = 64;
static const int16_t kLogResidualLength = 6; // log2(kResidualLength)
struct ChannelParameters {
@@ -112,7 +112,7 @@ class BackgroundNoise {
};
int32_t CalculateAutoCorrelation(const int16_t* signal,
- int length,
+ size_t length,
int32_t* auto_correlation) const;
// Increments the energy threshold by a factor 1 + |kThresholdIncrement|.
« no previous file with comments | « webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/background_noise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698