From d3350948522a6cce9b73d19b4f885d42b29b587c Mon Sep 17 00:00:00 2001 From: "andrew@webrtc.org" Date: Tue, 7 Jan 2014 18:57:10 +0000 Subject: [PATCH] Init to 16 kHz in the fixed-point profile. Fixes modules_unittests for fixed-point builds (Android). TBR=bjornv Review URL: https://webrtc-codereview.appspot.com/6709004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5349 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../audio_processing/test/audio_processing_unittest.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webrtc/modules/audio_processing/test/audio_processing_unittest.cc b/webrtc/modules/audio_processing/test/audio_processing_unittest.cc index 2650debf9d..6eab1e88b8 100644 --- a/webrtc/modules/audio_processing/test/audio_processing_unittest.cc +++ b/webrtc/modules/audio_processing/test/audio_processing_unittest.cc @@ -269,7 +269,11 @@ void ApmTest::SetUp() { frame_ = new AudioFrame(); revframe_ = new AudioFrame(); +#if defined(WEBRTC_AUDIOPROC_FIXED_PROFILE) + Init(16000, 2, 2, 2, false); +#else Init(32000, 2, 2, 2, false); +#endif } void ApmTest::TearDown() {