Fix chromium-style errors in IntelligibilityEnhancer

BUG=
R=henrik.lundin@webrtc.org, peah@webrtc.org

Review URL: https://codereview.webrtc.org/2308043002 .

Cr-Commit-Position: refs/heads/master@{#14094}
This commit is contained in:
Alejandro Luebs 2016-09-06 11:25:40 -07:00
parent 306d52b0fd
commit 37062ed16f
3 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class IntelligibilityEnhancer : public LappedTransform::Callback {
size_t num_render_channels,
size_t num_noise_bins);
~IntelligibilityEnhancer();
~IntelligibilityEnhancer() override;
// Sets the capture noise magnitude spectrum estimate.
void SetCaptureNoiseEstimate(std::vector<float> noise, float gain);

View File

@ -56,6 +56,8 @@ GainApplier::GainApplier(size_t freqs, float relative_change_limit)
target_(freqs, 1.f),
current_(freqs, 1.f) {}
GainApplier::~GainApplier() {}
void GainApplier::Apply(const std::complex<float>* in_block,
std::complex<float>* out_block) {
for (size_t i = 0; i < num_freqs_; ++i) {

View File

@ -48,6 +48,8 @@ class GainApplier {
public:
GainApplier(size_t freqs, float relative_change_limit);
~GainApplier();
// Copy |in_block| to |out_block|, multiplied by the current set of gains,
// and step the current set of gains towards the target set.
void Apply(const std::complex<float>* in_block,