summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/testresample.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/testresample.c')
-rw-r--r--apps/codecs/libspeex/testresample.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libspeex/testresample.c b/apps/codecs/libspeex/testresample.c
index bb7ab74db0..71392cc011 100644
--- a/apps/codecs/libspeex/testresample.c
+++ b/apps/codecs/libspeex/testresample.c
@@ -31,7 +31,7 @@
31*/ 31*/
32 32
33#ifdef HAVE_CONFIG_H 33#ifdef HAVE_CONFIG_H
34#include "config-speex.h" 34#include "config.h"
35#endif 35#endif
36 36
37#include <stdio.h> 37#include <stdio.h>
@@ -41,15 +41,15 @@
41 41
42#define NN 256 42#define NN 256
43 43
44int main(int argc, char **argv) 44int main()
45{ 45{
46 int i; 46 spx_uint32_t i;
47 short *in; 47 short *in;
48 short *out; 48 short *out;
49 float *fin, *fout; 49 float *fin, *fout;
50 int count = 0; 50 int count = 0;
51 SpeexResamplerState *st = speex_resampler_init(1, 8000, 12000, 10); 51 SpeexResamplerState *st = speex_resampler_init(1, 8000, 12000, 10, NULL);
52 speex_resampler_set_rate(st, 8000, 15999); 52 speex_resampler_set_rate(st, 96000, 44100);
53 speex_resampler_skip_zeros(st); 53 speex_resampler_skip_zeros(st);
54 54
55 in = malloc(NN*sizeof(short)); 55 in = malloc(NN*sizeof(short));
@@ -58,8 +58,8 @@ int main(int argc, char **argv)
58 fout = malloc(2*NN*sizeof(float)); 58 fout = malloc(2*NN*sizeof(float));
59 while (1) 59 while (1)
60 { 60 {
61 int in_len; 61 spx_uint32_t in_len;
62 int out_len; 62 spx_uint32_t out_len;
63 fread(in, sizeof(short), NN, stdin); 63 fread(in, sizeof(short), NN, stdin);
64 if (feof(stdin)) 64 if (feof(stdin))
65 break; 65 break;