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

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: 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..391042684ff7f760c06b3359c6c4c64b8d0db458 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_[0]; }
hlundin-webrtc 2016/02/24 10:17:03 .data()
aluebs-webrtc 2016/02/25 00:18:37 Done.
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