Use libsamplerate to convert samples not at the same rate as the plugin is running at

This adds a dependency on libsamplerate
This commit is contained in:
Nick Lanham
2012-02-14 12:03:18 +01:00
parent 645a4b497c
commit 48bf1f33b9
6 changed files with 50 additions and 7 deletions

1
drmr.c
View File

@@ -52,6 +52,7 @@ instantiate(const LV2_Descriptor* descriptor,
DrMr* drmr = malloc(sizeof(DrMr));
drmr->map = NULL;
drmr->num_samples = 0;
drmr->rate = rate;
if (pthread_mutex_init(&drmr->load_mutex, 0)) {
fprintf(stderr, "Could not initialize load_mutex.\n");