commit | ad9af03c4b491912239fc8c97a3ad0d342a33303 | [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 | 2d851ce1cf0c35739f4b35c40fd6c18b679eba7d | |
parent | 7aa7ed773040ea60bbe0a2a6ea949d62802304a4 [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); } } }