Skip to content

Commit 797f357

Browse files
committed
Use multiple channels
1 parent d5338f6 commit 797f357

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libspeexdsp/testresample2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <stdlib.h>
4141

4242
#define PERIOD 32
43+
#define CHANNELS 2
4344
#define INBLOCK 1024
4445
#define RATE 48000
4546

@@ -48,7 +49,7 @@ int main()
4849
spx_uint32_t i;
4950
float *fin, *fout;
5051
int rate = 1000, off = 0, avail = INBLOCK;
51-
SpeexResamplerState *st = speex_resampler_init(1, RATE, RATE, 4, NULL);
52+
SpeexResamplerState *st = speex_resampler_init(CHANNELS, RATE, RATE, 4, NULL);
5253
speex_resampler_set_rate(st, RATE, rate);
5354
speex_resampler_skip_zeros(st);
5455

0 commit comments

Comments
 (0)