annotate flattendynamics-ladspa.h @ 0:7632b9bf0cff

Initial stub plugin commit
author Chris Cannam
date Thu, 17 Jul 2014 12:16:02 +0100
parents
children f21753c504e1
rev   line source
Chris@0 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@0 2
Chris@0 3 #ifndef FLATTENDYNAMICS_LADSPA_H
Chris@0 4 #define FLATTENDYNAMICS_LADSPA_H
Chris@0 5
Chris@0 6 #include <ladspa.h>
Chris@0 7
Chris@0 8 class FlattenDynamics
Chris@0 9 {
Chris@0 10 public:
Chris@0 11 static const LADSPA_Descriptor *getDescriptor(unsigned long index);
Chris@0 12
Chris@0 13 private:
Chris@0 14 FlattenDynamics(int sampleRate);
Chris@0 15 ~FlattenDynamics();
Chris@0 16
Chris@0 17 enum {
Chris@0 18 InputPort = 0,
Chris@0 19 OutputPort = 1,
Chris@0 20 PortCount = 2,
Chris@0 21 };
Chris@0 22
Chris@0 23 static const char *const portNames[PortCount];
Chris@0 24 static const LADSPA_PortDescriptor ports[PortCount];
Chris@0 25 static const LADSPA_PortRangeHint hints[PortCount];
Chris@0 26 static const LADSPA_Properties properties;
Chris@0 27 static const LADSPA_Descriptor ladspaDescriptor;
Chris@0 28
Chris@0 29 static LADSPA_Handle instantiate(const LADSPA_Descriptor *, unsigned long);
Chris@0 30 static void connectPort(LADSPA_Handle, unsigned long, LADSPA_Data *);
Chris@0 31 static void activate(LADSPA_Handle);
Chris@0 32 static void run(LADSPA_Handle, unsigned long);
Chris@0 33 static void deactivate(LADSPA_Handle);
Chris@0 34 static void cleanup(LADSPA_Handle);
Chris@0 35
Chris@0 36 void reset();
Chris@0 37 void runImpl(unsigned long);
Chris@0 38 void updateParameters();
Chris@0 39
Chris@0 40 int m_sampleRate;
Chris@0 41 float *m_input;
Chris@0 42 float *m_output;
Chris@0 43 };
Chris@0 44
Chris@0 45 #endif