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

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

Issue 2763273003: Changed OLA window for neteq. Old code didnt work well with 48khz (Closed)
Patch Set: Updated based on review feeedback Created 3 years, 9 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
« no previous file with comments | « AUTHORS ('k') | webrtc/modules/audio_coding/neteq/normal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/normal.h
diff --git a/webrtc/modules/audio_coding/neteq/normal.h b/webrtc/modules/audio_coding/neteq/normal.h
index 23887f5134389591ebdba24f2f6ca2ddf9cca6fd..5a879f48c71ae43e56526986c9fbcea7d1b8416d 100644
--- a/webrtc/modules/audio_coding/neteq/normal.h
+++ b/webrtc/modules/audio_coding/neteq/normal.h
@@ -32,13 +32,17 @@ class Expand;
// no other "special circumstances" are at hand.
class Normal {
public:
- Normal(int fs_hz, DecoderDatabase* decoder_database,
+ Normal(int fs_hz,
+ DecoderDatabase* decoder_database,
const BackgroundNoise& background_noise,
Expand* expand)
: fs_hz_(fs_hz),
decoder_database_(decoder_database),
background_noise_(background_noise),
- expand_(expand) {
+ expand_(expand),
+ samples_per_ms_(fs_hz / 1000),
+ default_win_slope_Q14_((1 << 14) / samples_per_ms_) {
+ rtc::CheckedDivExact(fs_hz_, 1000);
hlundin-webrtc 2017/03/27 13:29:06 You should be able to do this where you perform an
}
virtual ~Normal() {}
@@ -60,6 +64,8 @@ class Normal {
DecoderDatabase* decoder_database_;
const BackgroundNoise& background_noise_;
Expand* expand_;
+ const size_t samples_per_ms_;
+ const int16_t default_win_slope_Q14_;
RTC_DISALLOW_COPY_AND_ASSIGN(Normal);
};
« no previous file with comments | « AUTHORS ('k') | webrtc/modules/audio_coding/neteq/normal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698