From c19572622756c50eb76daecbd44d8bcc24fded47 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 9 Mar 2019 07:56:40 +0000 Subject: [PATCH] Increase number of voices to 64 --- plugin/plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/plugin.c b/plugin/plugin.c index caf9c7c..0b4864b 100644 --- a/plugin/plugin.c +++ b/plugin/plugin.c @@ -29,6 +29,8 @@ #define SAMPLER_OUT_L 2 #define SAMPLER_OUT_R 3 +#define NUM_VOICES 64 + struct sampler_plugin { LV2_URID_Map *map; LV2_Worker_Schedule *schedule; @@ -146,7 +148,7 @@ static LV2_Handle instantiate(const LV2_Descriptor *descriptor, double rate, struct sampler_plugin *plugin = (struct sampler_plugin *)calloc(1, sizeof(struct sampler_plugin)); - plugin->sampler = sampler_new(32, (int)rate); + plugin->sampler = sampler_new(NUM_VOICES, (int)rate); plugin->samplerate = (int)rate; // Get host features -- GitLab