Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LADSPA_VALA_H
- #define LADSPA_VALA_H
- #include <ladspa.h>
- // would be great if these could be added to ladspa.h upstream
- typedef LADSPA_Handle (*LADSPA_Instantiate_Function)(const struct _LADSPA_Descriptor * Descriptor, unsigned long SampleRate);
- typedef void (*LADSPA_Connect_Port_Function)(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation);
- typedef void (*LADSPA_Activate_Function)(LADSPA_Handle Instance);
- typedef void (*LADSPA_Run_Function)(LADSPA_Handle Instance, unsigned long SampleCount);
- typedef void (*LADSPA_Run_Adding_Function)(LADSPA_Handle Instance, unsigned long SampleCount);
- typedef void (*LADSPA_Set_Run_Adding_Gain_Function)(LADSPA_Handle Instance, LADSPA_Data Gain);
- typedef void (*LADSPA_Deactivate_Function)(LADSPA_Handle Instance);
- typedef void (*LADSPA_Cleanup_Function)(LADSPA_Handle Instance);
- // this is a hack but will get the job done
- static void ladspa_handle_dummy_free(LADSPA_Handle Instance)
- {
- if (Instance != NULL)
- {
- // TODO: could possibly report an error here about a memory leak
- }
- }
- #endif // LADSPA_VALA_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement