diff options
| author | Dan Everton <dan@iocaine.org> | 2007-05-22 09:50:31 +0000 |
|---|---|---|
| committer | Dan Everton <dan@iocaine.org> | 2007-05-22 09:50:31 +0000 |
| commit | df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256 (patch) | |
| tree | d9862e5d04f4014def5911bb4ff8206c85636fb7 /apps/codecs/libspeex/testresample.c | |
| parent | 8970055ec107a2387eedbb373889d0f540745121 (diff) | |
| download | rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.zip rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.tar.gz rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.tar.bz2 rockbox-df6f2f9a3c88a7a4a8ad0382ee4ee7c9a3ee3256.tar.xz | |
Upgrade to libspeex 1.2beta2. Very minor performance increase (0.6% on coldfire).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13461 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/testresample.c')
| -rw-r--r-- | apps/codecs/libspeex/testresample.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libspeex/testresample.c b/apps/codecs/libspeex/testresample.c index bb7ab74..71392cc 100644 --- a/apps/codecs/libspeex/testresample.c +++ b/apps/codecs/libspeex/testresample.c @@ -31,7 +31,7 @@ */ #ifdef HAVE_CONFIG_H -#include "config-speex.h" +#include "config.h" #endif #include <stdio.h> @@ -41,15 +41,15 @@ #define NN 256 -int main(int argc, char **argv) +int main() { - int i; + spx_uint32_t i; short *in; short *out; float *fin, *fout; int count = 0; - SpeexResamplerState *st = speex_resampler_init(1, 8000, 12000, 10); - speex_resampler_set_rate(st, 8000, 15999); + SpeexResamplerState *st = speex_resampler_init(1, 8000, 12000, 10, NULL); + speex_resampler_set_rate(st, 96000, 44100); speex_resampler_skip_zeros(st); in = malloc(NN*sizeof(short)); @@ -58,8 +58,8 @@ int main(int argc, char **argv) fout = malloc(2*NN*sizeof(float)); while (1) { - int in_len; - int out_len; + spx_uint32_t in_len; + spx_uint32_t out_len; fread(in, sizeof(short), NN, stdin); if (feof(stdin)) break; |