Chris@0: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@0: Chris@0: #ifndef FLATTENDYNAMICS_LADSPA_H Chris@0: #define FLATTENDYNAMICS_LADSPA_H Chris@0: Chris@0: #include Chris@0: Chris@0: class FlattenDynamics Chris@0: { Chris@0: public: Chris@0: static const LADSPA_Descriptor *getDescriptor(unsigned long index); Chris@0: Chris@0: private: Chris@0: FlattenDynamics(int sampleRate); Chris@0: ~FlattenDynamics(); Chris@0: Chris@0: enum { Chris@0: InputPort = 0, Chris@0: OutputPort = 1, Chris@0: PortCount = 2, Chris@0: }; Chris@0: Chris@0: static const char *const portNames[PortCount]; Chris@0: static const LADSPA_PortDescriptor ports[PortCount]; Chris@0: static const LADSPA_PortRangeHint hints[PortCount]; Chris@0: static const LADSPA_Properties properties; Chris@0: static const LADSPA_Descriptor ladspaDescriptor; Chris@0: Chris@0: static LADSPA_Handle instantiate(const LADSPA_Descriptor *, unsigned long); Chris@0: static void connectPort(LADSPA_Handle, unsigned long, LADSPA_Data *); Chris@0: static void activate(LADSPA_Handle); Chris@0: static void run(LADSPA_Handle, unsigned long); Chris@0: static void deactivate(LADSPA_Handle); Chris@0: static void cleanup(LADSPA_Handle); Chris@0: Chris@0: void reset(); Chris@0: void runImpl(unsigned long); Chris@0: void updateParameters(); Chris@0: Chris@0: int m_sampleRate; Chris@0: float *m_input; Chris@0: float *m_output; Chris@0: }; Chris@0: Chris@0: #endif