NetEq: Remove background noise fill during long expansions
NetEq was (up until this CL) capable of fading over to generating a
constant background noise when voice expansion had lasted too long.
However, the code has for a really long time only ever used the "off"
mode, which meant that long expansions are faded down to complete
silence (only zeros), i.e., background noise fill was not used.
Removing the other two modes ("on" and "fade") simplifies the code.
Bug: webrtc:9180
Change-Id: Ia2d46960208f3d75c9659ad3f027c52e5ecfb6b0
Reviewed-on: https://webrtc-review.googlesource.com/71485
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Minyue Li <minyue@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22969}
This commit is contained in:
committed by
Commit Bot
parent
6e396b0188
commit
6719017d19
@ -68,11 +68,6 @@ class BackgroundNoise {
|
||||
|
||||
// Accessors.
|
||||
bool initialized() const { return initialized_; }
|
||||
NetEq::BackgroundNoiseMode mode() const { return mode_; }
|
||||
|
||||
// Sets the mode of the background noise playout for cases when there is long
|
||||
// duration of packet loss.
|
||||
void set_mode(NetEq::BackgroundNoiseMode mode) { mode_ = mode; }
|
||||
|
||||
private:
|
||||
static const int kThresholdIncrement = 229; // 0.0035 in Q16.
|
||||
@ -128,7 +123,6 @@ class BackgroundNoise {
|
||||
size_t num_channels_;
|
||||
std::unique_ptr<ChannelParameters[]> channel_parameters_;
|
||||
bool initialized_;
|
||||
NetEq::BackgroundNoiseMode mode_;
|
||||
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(BackgroundNoise);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user