Rework of sample rate conversion by using linear interpolation

This commit is contained in:
Andreas Eversberg
2017-02-05 13:16:39 +01:00
parent 47f74b38ce
commit 4c0f8e7e95
2 changed files with 40 additions and 12 deletions

View File

@@ -4,10 +4,12 @@ typedef struct samplerate {
double factor;
struct {
filter_t lp;
sample_t last_sample;
double in_index;
} down;
struct {
filter_t lp;
sample_t last_sample;
double in_index;
} up;
} samplerate_t;