commit | cc144deaab88383a996eb670fb3ce574316db897 | [log] [tgz] |
---|---|---|
author | aluebs@webrtc.org <aluebs@webrtc.org> | Fri Nov 28 00:26:27 2014 +0000 |
committer | aluebs@webrtc.org <aluebs@webrtc.org> | Fri Nov 28 00:26:27 2014 +0000 |
tree | 98d901107bfd16d26c9dd38b083f9f63e83ef012 | |
parent | 8789376cd35e055765a72248a8ad444ea2e9438c [diff] |
Make bands vector in SplittingFilter Analysis const BUG=webrtc:3146 R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/30229004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7761 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_processing/splitting_filter.cc b/webrtc/modules/audio_processing/splitting_filter.cc index 5e93408..adb82f6 100644 --- a/webrtc/modules/audio_processing/splitting_filter.cc +++ b/webrtc/modules/audio_processing/splitting_filter.cc
@@ -31,7 +31,7 @@ } void SplittingFilter::Analysis(const IFChannelBuffer* in_data, - std::vector<IFChannelBuffer*>& bands) { + const std::vector<IFChannelBuffer*>& bands) { DCHECK(bands.size() == 2 || bands.size() == 3); DCHECK_EQ(channels_, in_data->num_channels()); for (size_t i = 0; i < bands.size(); ++i) {
diff --git a/webrtc/modules/audio_processing/splitting_filter.h b/webrtc/modules/audio_processing/splitting_filter.h index 66e85be..119375b 100644 --- a/webrtc/modules/audio_processing/splitting_filter.h +++ b/webrtc/modules/audio_processing/splitting_filter.h
@@ -57,7 +57,7 @@ SplittingFilter(int channels); void Analysis(const IFChannelBuffer* in_data, - std::vector<IFChannelBuffer*>& bands); + const std::vector<IFChannelBuffer*>& bands); void Synthesis(const std::vector<IFChannelBuffer*>& bands, IFChannelBuffer* out_data);