Allow webrtc compilation with stlport
Android has not yet finalized its libc++ build. Allow compilation with stlport by removing several C++11 library usages. BUG=427718,487341,webrtc:4866 R=andrew@webrtc.org Review URL: https://codereview.webrtc.org/1250663007 . Patch from Jared Duke <jdduke@chromium.org>. Cr-Commit-Position: refs/heads/master@{#9616}
This commit is contained in:

committed by
Andrew MacDonald

parent
934119111e
commit
7c5304c791
@ -390,8 +390,9 @@ void IntelligibilityEnhancer::SolveForGainsGivenLambda(float lambda,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IntelligibilityEnhancer::FilterVariance(const float* var, float* result) {
|
void IntelligibilityEnhancer::FilterVariance(const float* var, float* result) {
|
||||||
|
DCHECK_GT(freqs_, 0);
|
||||||
for (int i = 0; i < bank_size_; ++i) {
|
for (int i = 0; i < bank_size_; ++i) {
|
||||||
result[i] = DotProduct(filter_bank_[i].data(), var, freqs_);
|
result[i] = DotProduct(&filter_bank_[i][0], var, freqs_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user