Add R3 support to plugins

This commit is contained in:
Chris Cannam
2022-06-13 11:49:04 +01:00
parent c7e4d9eb07
commit 90ad1274d8
8 changed files with 930 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
#define RB_PLUGIN_LADSPA 1
#undef RB_PLUGIN_LV2
#include "RubberBandPitchShifter.cpp"
#include "RubberBandR3PitchShifter.cpp"
#include <stdio.h>
@@ -31,7 +32,11 @@ extern "C" {
const LADSPA_Descriptor *ladspa_descriptor(unsigned long index)
{
return RubberBandPitchShifter::getDescriptor(index);
if (index < 2) {
return RubberBandPitchShifter::getDescriptor(index);
} else {
return RubberBandR3PitchShifter::getDescriptor(index - 2);
}
}
}