Remove build-time beamformer flags.
RealFourier is now unconditionally enabled since we can fall back to the Ooura FFT. We no longer need to condition users on rtc_use_openmax_dl. R=aluebs@webrtc.org, mgraczyk@google.com Review URL: https://webrtc-codereview.appspot.com/50439004 Cr-Commit-Position: refs/heads/master@{#8799} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8799 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -599,12 +599,10 @@ int AudioProcessingImpl::ProcessStreamLocked() {
|
||||
ca->SplitIntoFrequencyBands();
|
||||
}
|
||||
|
||||
#ifdef WEBRTC_BEAMFORMER
|
||||
if (beamformer_enabled_) {
|
||||
beamformer_->ProcessChunk(ca->split_data_f(), ca->split_data_f());
|
||||
ca->set_num_channels(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
RETURN_ON_ERR(high_pass_filter_->ProcessCaptureAudio(ca));
|
||||
RETURN_ON_ERR(gain_control_->AnalyzeCaptureAudio(ca));
|
||||
@ -986,14 +984,10 @@ int AudioProcessingImpl::InitializeTransient() {
|
||||
|
||||
void AudioProcessingImpl::InitializeBeamformer() {
|
||||
if (beamformer_enabled_) {
|
||||
#ifdef WEBRTC_BEAMFORMER
|
||||
if (!beamformer_) {
|
||||
beamformer_.reset(new NonlinearBeamformer(array_geometry_));
|
||||
}
|
||||
beamformer_->Initialize(kChunkSizeMs, split_rate_);
|
||||
#else
|
||||
assert(false);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user