aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/samplerate.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-05-13 16:04:00 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-05-15 21:46:32 +0200
commitca10048e5caa77d8ed4c4902336f8ef88738a5e0 (patch)
treeb760e6bc3d44e187298e692bccfa6136812a40c5 /src/common/samplerate.h
parentd03443c4f158c537f071487d12ed9fca631539a7 (diff)
Rename filter -> iir_filter (file name and instance name)
This is useful when using fir_filter in the future.
Diffstat (limited to 'src/common/samplerate.h')
-rw-r--r--src/common/samplerate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/samplerate.h b/src/common/samplerate.h
index 8c69741..4fbf680 100644
--- a/src/common/samplerate.h
+++ b/src/common/samplerate.h
@@ -1,19 +1,19 @@
-#include "filter.h"
+#include "iir_filter.h"
typedef struct samplerate {
double factor;
struct {
- filter_t lp;
+ iir_filter_t lp;
sample_t last_sample;
double in_index;
} down;
struct {
- filter_t lp;
+ iir_filter_t lp;
sample_t last_sample;
double in_index;
} up;
} samplerate_t;
-int init_samplerate(samplerate_t *state, double low_samplerate, double high_samplerate);
+int init_samplerate(samplerate_t *state, double low_samplerate, double high_samplerate, double filter_cutoff);
int samplerate_downsample(samplerate_t *state, sample_t *samples, int input_num);
int samplerate_upsample(samplerate_t *state, sample_t *input, int input_num, sample_t *output);