summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/test-resample.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-11-04 15:16:13 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-08 12:45:59 -0800
commitad9af03c4b491912239fc8c97a3ad0d342a33303 (patch)
tree2d851ce1cf0c35739f4b35c40fd6c18b679eba7d /services/audioflinger/test-resample.cpp
parent7aa7ed773040ea60bbe0a2a6ea949d62802304a4 (diff)
downloadframeworks_av-ad9af03c4b491912239fc8c97a3ad0d342a33303.zip
frameworks_av-ad9af03c4b491912239fc8c97a3ad0d342a33303.tar.gz
frameworks_av-ad9af03c4b491912239fc8c97a3ad0d342a33303.tar.bz2
NEON optimized SINC resampler
this currently gives us a 60% to 80% boost depending on the quality level selected. Change-Id: I7db385007e811ed7bffe5fd3403b44e300894f5b
Diffstat (limited to 'services/audioflinger/test-resample.cpp')
-rw-r--r--services/audioflinger/test-resample.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ int main(int argc, char* argv[]) {
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);
}
}
}