commit | c6ccbabd2800e749bc86a34d2ae233f99102ba51 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Sun Nov 04 15:16:13 2012 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Nov 08 12:45:59 2012 -0800 |
tree | f11c89a8d8bbba54a0558e78e2b480a0407bc516 | |
parent | af03dfb73d05dfabdf55640aff8b2256fdd78663 [diff] [blame] |
NEON optimized SINC resampler this currently gives us a 60% to 80% boost depending on the quality level selected. Change-Id: I7db385007e811ed7bffe5fd3403b44e300894f5b
diff --git a/services/audioflinger/test-resample.cpp b/services/audioflinger/test-resample.cpp index e6d5cbe..3b66530 100644 --- a/services/audioflinger/test-resample.cpp +++ b/services/audioflinger/test-resample.cpp
@@ -178,7 +178,7 @@ double y = sin(M_PI * k * t * t); int16_t yi = floor(y * 32767.0 + 0.5); for (size_t j=0 ; j<channels ; j++) { - in[i*channels + j] = yi; + in[i*channels + j] = yi / (1+j); } } }