AgsLadspaManager

AgsLadspaManager — Singleton pattern to organize LADSPA

Synopsis

#include <ags/object/ags_ladspa_manager.h>

#define             AGS_LADSPA_PLUGIN                   (ptr)
struct              AgsLadspaManager;
struct              AgsLadspaManagerClass;
struct              AgsLadspaPlugin;
enum                AgsLadspaPluginFlags;
AgsLadspaPlugin *   ags_ladspa_manager_find_ladspa_plugin
                                                        (gchar *filename);
gchar **            ags_ladspa_manager_get_filenames    ();
AgsLadspaManager *  ags_ladspa_manager_get_instance     ();
void                ags_ladspa_manager_load_default_directory
                                                        ();
void                ags_ladspa_manager_load_file        (gchar *filename);
AgsLadspaManager *  ags_ladspa_manager_new              ();
AgsLadspaPlugin *   ags_ladspa_plugin_alloc             ();
void                ags_ladspa_plugin_free              (AgsLadspaPlugin *ladspa_plugin);

Description

The AgsLadspaManager loads/unloads LADSPA plugins.

Details

AGS_LADSPA_PLUGIN()

#define AGS_LADSPA_PLUGIN(ptr) ((AgsLadspaPlugin *)(ptr))

struct AgsLadspaManager

struct AgsLadspaManager {
  GObject object;
  
  GList *ladspa_plugin;
};

struct AgsLadspaManagerClass

struct AgsLadspaManagerClass {
  GObjectClass object;
};

struct AgsLadspaPlugin

struct AgsLadspaPlugin {
  guint flags;

  gchar *filename;
  void *plugin_so;
};

enum AgsLadspaPluginFlags

typedef enum {
  AGS_LADSPA_PLUGIN_IS_LOADED    = 1,
} AgsLadspaPluginFlags;

ags_ladspa_manager_find_ladspa_plugin ()

AgsLadspaPlugin *   ags_ladspa_manager_find_ladspa_plugin
                                                        (gchar *filename);

Lookup filename in loaded plugins.

filename :

the filename of the plugin

Returns :

the AgsLadspaPlugin

Since 0.4


ags_ladspa_manager_get_filenames ()

gchar **            ags_ladspa_manager_get_filenames    ();

Retrieve all filenames

Returns :

a NULL-terminated array of filenames

Since 0.4


ags_ladspa_manager_get_instance ()

AgsLadspaManager *  ags_ladspa_manager_get_instance     ();

Get instance.

Returns :

the AgsLadspaManager

Since 0.4


ags_ladspa_manager_load_default_directory ()

void                ags_ladspa_manager_load_default_directory
                                                        ();

Loads all available plugins.

Since 0.4


ags_ladspa_manager_load_file ()

void                ags_ladspa_manager_load_file        (gchar *filename);

Load filename specified plugin.

filename :

the filename of the plugin

Since 0.4


ags_ladspa_manager_new ()

AgsLadspaManager *  ags_ladspa_manager_new              ();

Creates an AgsLadspaManager

devout :

an AgsDevout

Returns :

a new AgsLadspaManager

Since 0.4


ags_ladspa_plugin_alloc ()

AgsLadspaPlugin *   ags_ladspa_plugin_alloc             ();

Alloc the AgsLadspaPlugin

Returns :

the AgsLadspaPlugin

Since 0.4


ags_ladspa_plugin_free ()

void                ags_ladspa_plugin_free              (AgsLadspaPlugin *ladspa_plugin);

Free the AgsLadspaPlugin

ladspa_plugin :

the AgsLadspaPlugin

Since 0.4