Add 48kHz support to Beamformer

Doing something similar for the band 16-24kHz to what is done for the band 8-16kHz
Tested for 32kHz sample rate and the output is bitexact with how it was before this CL.

BUG=webrtc:3146
R=andrew@webrtc.org, kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/35159004

Cr-Commit-Position: refs/heads/master@{#8522}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8522 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
aluebs@webrtc.org
2015-02-26 21:52:20 +00:00
parent 9650ab4d59
commit 3aca0b0b31
7 changed files with 104 additions and 62 deletions

View File

@ -610,12 +610,7 @@ int AudioProcessingImpl::ProcessStreamLocked() {
#ifdef WEBRTC_BEAMFORMER
if (beamformer_enabled_) {
beamformer_->ProcessChunk(ca->split_channels_const_f(kBand0To8kHz),
ca->split_channels_const_f(kBand8To16kHz),
ca->num_channels(),
ca->num_frames_per_band(),
ca->split_channels_f(kBand0To8kHz),
ca->split_channels_f(kBand8To16kHz));
beamformer_->ProcessChunk(ca->split_data_f(), ca->split_data_f());
ca->set_num_channels(1);
}
#endif