Skip to content

Commit

Permalink
Use multiple channels
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed May 5, 2022
1 parent d5338f6 commit 797f357
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libspeexdsp/testresample2.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <stdlib.h>

#define PERIOD 32
#define CHANNELS 2
#define INBLOCK 1024
#define RATE 48000

Expand All @@ -48,7 +49,7 @@ int main()
spx_uint32_t i;
float *fin, *fout;
int rate = 1000, off = 0, avail = INBLOCK;
SpeexResamplerState *st = speex_resampler_init(1, RATE, RATE, 4, NULL);
SpeexResamplerState *st = speex_resampler_init(CHANNELS, RATE, RATE, 4, NULL);
speex_resampler_set_rate(st, RATE, rate);
speex_resampler_skip_zeros(st);

Expand Down

0 comments on commit 797f357

Please sign in to comment.