1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dan Everton 2007-05-22 09:50:31 +00:00
parent 8970055ec1
commit df6f2f9a3c
36 changed files with 626 additions and 302 deletions

View file

@ -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;