Resampler modifications in preparation for arbitrary audioproc rates.

- Templatize PushResampler to support int16 and float.
- Add a helper method to PushSincResampler to compute the algorithmic
delay.

This is a prerequisite of:
http://review.webrtc.org/9919004/

BUG=2894
R=turaj@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5943 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org
2014-04-19 00:32:07 +00:00
parent 3d9ec1fed4
commit f5a33f145b
12 changed files with 52 additions and 48 deletions

View File

@@ -29,7 +29,7 @@ class ACMResampler {
int16_t* out_audio);
private:
PushResampler resampler_;
PushResampler<int16_t> resampler_;
};
} // namespace acm2

View File

@@ -15,7 +15,6 @@
#include "webrtc/typedefs.h"
namespace webrtc {
namespace acm1 {
class ACMResampler {
@@ -30,11 +29,10 @@ class ACMResampler {
uint8_t num_audio_channels);
private:
PushResampler resampler_;
PushResampler<int16_t> resampler_;
};
} // namespace acm1
} // namespace webrtc
#endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_SOURCE_ACM_RESAMPLER_H_