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

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h

Issue 1729753003: Fix the stereo support in IntelligibilityEnhancer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@gains2
Patch Set: Rebasing Created 4 years, 10 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_processing/intelligibility/intelligibility_utils.h
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
index 3805a0cd1556c4a5da1dd266a200740516f9f020..11b9e49bd44d681722b79983351ba966a0b4ec42 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
@@ -12,7 +12,6 @@
#define WEBRTC_MODULES_AUDIO_PROCESSING_INTELLIGIBILITY_INTELLIGIBILITY_UTILS_H_
#include <complex>
-#include <memory>
#include <vector>
namespace webrtc {
@@ -55,13 +54,13 @@ class GainApplier {
std::complex<float>* out_block);
// Return the current target gain set. Modify this array to set the targets.
- float* target() const { return target_.get(); }
+ float* target() { return target_.data(); }
private:
const size_t num_freqs_;
const float relative_change_limit_;
- std::unique_ptr<float[]> target_;
- std::unique_ptr<float[]> current_;
+ std::vector<float> target_;
+ std::vector<float> current_;
};
} // namespace intelligibility

Powered by Google App Engine
This is Rietveld 408576698