LMMS
Loading...
Searching...
No Matches
init.cpp File Reference
#include <cstdlib>
#include <cstring>
#include <ladspa.h>
#include "cmt.h"

Classes

class  StartupShutdownHandler

Macros

#define CAPACITY_STEP   20

Functions

void initialise_modules ()
void finalise_modules ()
static int pluginNameComparator (const void *pvDescriptor1, const void *pvDescriptor2)
void registerNewPluginDescriptor (CMT_Descriptor *psDescriptor)
const LADSPA_Descriptorladspa_descriptor (unsigned long Index)

Variables

static CMT_Descriptor ** g_ppsRegisteredDescriptors = NULL
static unsigned long g_lPluginCapacity = 0
static unsigned long g_lPluginCount = 0
static StartupShutdownHandler g_oStartupShutdownHandler

Macro Definition Documentation

◆ CAPACITY_STEP

#define CAPACITY_STEP   20

Function Documentation

◆ finalise_modules()

void finalise_modules ( )

Finalise any structures allocated by the modules. This does not include descriptors passed to registerNewPluginDescriptor().

◆ initialise_modules()

void initialise_modules ( )

This function should initialise all modules in the library. This will lead to all plugin descriptors being registered. If you write a new plugin you should initialise it here. If the module has structures it wishes to remove also then these should be included in finalise_modules().

◆ ladspa_descriptor()

const LADSPA_Descriptor * ladspa_descriptor ( unsigned long Index)

◆ pluginNameComparator()

int pluginNameComparator ( const void * pvDescriptor1,
const void * pvDescriptor2 )
static

◆ 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.

Variable Documentation

◆ g_lPluginCapacity

unsigned long g_lPluginCapacity = 0
static

◆ g_lPluginCount

unsigned long g_lPluginCount = 0
static

◆ g_oStartupShutdownHandler

StartupShutdownHandler g_oStartupShutdownHandler
static

◆ g_ppsRegisteredDescriptors

CMT_Descriptor** g_ppsRegisteredDescriptors = NULL
static