Fixed resampler for large increment counts
This commit is contained in:
parent
94fcb71671
commit
003aaeee19
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ typedef struct resampler
|
||||||
int write_pos, write_filled;
|
int write_pos, write_filled;
|
||||||
int read_pos, read_filled;
|
int read_pos, read_filled;
|
||||||
unsigned short phase;
|
unsigned short phase;
|
||||||
unsigned short phase_inc;
|
unsigned int phase_inc;
|
||||||
unsigned char quality;
|
unsigned char quality;
|
||||||
float buffer_in[resampler_buffer_size * 2];
|
float buffer_in[resampler_buffer_size * 2];
|
||||||
float buffer_out[resampler_buffer_size + SINC_WIDTH * 2 - 1];
|
float buffer_out[resampler_buffer_size + SINC_WIDTH * 2 - 1];
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef struct resampler
|
||||||
int write_pos, write_filled;
|
int write_pos, write_filled;
|
||||||
int read_pos, read_filled;
|
int read_pos, read_filled;
|
||||||
unsigned short phase;
|
unsigned short phase;
|
||||||
unsigned short phase_inc;
|
unsigned int phase_inc;
|
||||||
unsigned char quality;
|
unsigned char quality;
|
||||||
float buffer_in[resampler_buffer_size * 2];
|
float buffer_in[resampler_buffer_size * 2];
|
||||||
float buffer_out[resampler_buffer_size + SINC_WIDTH * 2 - 1];
|
float buffer_out[resampler_buffer_size + SINC_WIDTH * 2 - 1];
|
||||||
|
|
Loading…
Reference in a new issue