fixed point resampling option

This commit is contained in:
philippe44
2019-06-26 21:31:50 -07:00
parent 375a5aec2a
commit a75f1f0cd5
11 changed files with 272 additions and 11 deletions

View File

@@ -132,6 +132,10 @@
#undef RESAMPLE
#define RESAMPLE 1 // resampling
#define PROCESS 1 // any sample processing (only resampling at present)
#elif defined(RESAMPLE16)
#undef RESAMPLE16
#define RESAMPLE16 1
#define PROCESS 1
#else
#define RESAMPLE 0
#define PROCESS 0
@@ -647,7 +651,7 @@ unsigned process_newstream(bool *direct, unsigned raw_sample_rate, unsigned supp
void process_init(char *opt);
#endif
#if RESAMPLE
#if RESAMPLE || RESAMPLE16
// resample.c
void resample_samples(struct processstate *process);
bool resample_drain(struct processstate *process);