16 #ifndef _SAMPLE_PLAYER_H_ 17 #define _SAMPLE_PLAYER_H_ 19 #define DSSI_API_LEVEL 2 21 #include "../api/ladspa.h" 22 #include "../api/dssi.h" 24 #include <seq_event.h> 33 static const DSSI_Descriptor *
getDescriptor(
unsigned long index);
61 static LADSPA_Handle
instantiate(
const LADSPA_Descriptor *,
unsigned long);
62 static void connectPort(LADSPA_Handle,
unsigned long, LADSPA_Data *);
64 static void run(LADSPA_Handle,
unsigned long);
66 static void cleanup(LADSPA_Handle);
67 static char *
configure(LADSPA_Handle,
const char *,
const char *);
68 static const DSSI_Program_Descriptor *
getProgram(LADSPA_Handle,
unsigned long);
69 static void selectProgram(LADSPA_Handle,
unsigned long,
unsigned long);
71 static void runSynth(LADSPA_Handle,
unsigned long,
72 snd_seq_event_t *,
unsigned long);
78 void runImpl(
unsigned long, snd_seq_event_t *,
unsigned long);
79 void addSample(
int,
unsigned long,
unsigned long);
99 std::vector<std::pair<QString, QString> >
m_samples;
static void run(LADSPA_Handle, unsigned long)
void loadSampleData(QString path)
void addSample(int, unsigned long, unsigned long)
void runImpl(unsigned long, snd_seq_event_t *, unsigned long)
std::vector< std::pair< QString, QString > > m_samples
static void deactivate(LADSPA_Handle)
static char * configure(LADSPA_Handle, const char *, const char *)
static void selectProgram(LADSPA_Handle, unsigned long, unsigned long)
static LADSPA_Handle instantiate(const LADSPA_Descriptor *, unsigned long)
SamplePlayer(int sampleRate)
static const DSSI_Descriptor * getDescriptor(unsigned long index)
static const LADSPA_PortDescriptor ports[PortCount]
static const char *const portNames[PortCount]
int m_velocities[Polyphony]
static void runSynth(LADSPA_Handle, unsigned long, snd_seq_event_t *, unsigned long)
static void workThreadCallback(LADSPA_Handle)
static const DSSI_Host_Descriptor * hostDescriptor
static const LADSPA_PortRangeHint hints[PortCount]
static void activate(LADSPA_Handle)
static const LADSPA_Properties properties
static void connectPort(LADSPA_Handle, unsigned long, LADSPA_Data *)
static const DSSI_Program_Descriptor * getProgram(LADSPA_Handle, unsigned long)
static void receiveHostDescriptor(const DSSI_Host_Descriptor *descriptor)
bool m_sampleSearchComplete
static const LADSPA_Descriptor ladspaDescriptor
int m_pendingProgramChange
static int getMidiController(LADSPA_Handle, unsigned long)
static const DSSI_Descriptor dssiDescriptor
static void cleanup(LADSPA_Handle)