2 #ifndef _LadspaWrapper_hxx_
3 #define _LadspaWrapper_hxx_
23 typedef void * SOPointer;
24 LADSPA_Handle _instance;
25 const LADSPA_Descriptor * _descriptor;
26 SOPointer _sharedObject;
27 std::string _libraryFileName;
29 std::vector< AudioInPort* > _inputPorts;
30 std::vector< AudioOutPort* > _outputPorts;
32 std::vector< FloatInControl* > _inputControls;
33 std::vector< FloatOutControl* > _outputControls;
34 std::vector< LADSPA_Data > _outputControlValues;
36 std::string _factoryKey;
37 void RemovePortsAndControls();
38 void ConfigurePortsAndControls();
39 void ConfigureControlsPointers();
40 void DoUpdatePortsPointers();
44 LadspaWrapper(
const std::string& libraryFileName,
unsigned index,
const std::string& factoryKey );
54 bool LoadLibraryFunction(
const std::string& libraryFileName,
unsigned index,
const std::string& factoryKey);