diff --git a/plugin/plugin.c b/plugin/plugin.c index caf9c7c0d0870b531d7b75c809edef96d0b38cde..0b4864b13e2c02cdd4e012f35eed798f47baf12e 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