LMMS
Loading...
Searching...
No Matches
cmt.h File Reference
#include "ladspa_types.h"

Go to the source code of this file.

Classes

class  CMT_ImplementationData
struct  CMT_Descriptor
class  CMT_PluginInstance

Macros

#define M_PI   3.14159265358979323846264338327
#define CMT_MAKER(AUTHORS)
#define CMT_COPYRIGHT(YEARS, AUTHORS)

Typedefs

typedef CMT_DescriptorCMT_Descriptor_ptr

Functions

void registerNewPluginDescriptor (CMT_Descriptor *psDescriptor)
template<class T>
LADSPA_Handle CMT_Instantiate (const LADSPA_Descriptor *Descriptor, unsigned long SampleRate)

Macro Definition Documentation

◆ CMT_COPYRIGHT

#define CMT_COPYRIGHT ( YEARS,
AUTHORS )
Value:
"(C)" YEARS ", " AUTHORS ". " \
"GNU General Public Licence Version 2 applies."

◆ CMT_MAKER

#define CMT_MAKER ( AUTHORS)
Value:
"CMT (http://www.ladspa.org/cmt, plugin by " AUTHORS ")"

◆ M_PI

#define M_PI   3.14159265358979323846264338327

Typedef Documentation

◆ CMT_Descriptor_ptr

Function Documentation

◆ CMT_Instantiate()

template<class T>
LADSPA_Handle CMT_Instantiate ( const LADSPA_Descriptor * Descriptor,
unsigned long SampleRate )

This template can be used to generate functions to instantiate CMT plugins. To be used with this function, the plugin must accept two parameters (a LADSPA_Descriptor pointer and a sample rate). See the SimpleMixer class and mixer_descriptor() in mixer.cpp for a simple example of this: the instantiate function for the mixer class is generated within the mixer_descriptor() function as "CMT_Instantiate<SimpleMixer>".

◆ registerNewPluginDescriptor()

void registerNewPluginDescriptor ( CMT_Descriptor * psDescriptor)

Each plugin type must register itself with the descriptor registry. This is done by calling the following function, passing a newly allocated structure (that will be cleaned up on library unload automatically).

Each module needs to be initialised in order to have a chance to register new plugins. This can be achieved by modifying the list of initialiser functions in descriptor.cpp.