AgsLv2Manager

AgsLv2Manager — Singleton pattern to organize LV2

Functions

Properties

gchar * locale Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsLv2Manager

Includes

#include <ags/plugin/ags_lv2_manager.h>

Description

The AgsLv2Manager loads/unloads LV2 plugins.

Functions

ags_lv2_manager_get_default_path ()

gchar **
ags_lv2_manager_get_default_path ();

Get lv2 manager default plugin path.

Returns

the plugin default search path as a string vector

Since: 1.0.0


ags_lv2_manager_set_default_path ()

void
ags_lv2_manager_set_default_path (gchar **default_path);

Set lv2 manager default plugin path.

Parameters

default_path

the string vector array to use as default path

 

Since: 1.0.0


ags_lv2_manager_get_filenames ()

gchar **
ags_lv2_manager_get_filenames (AgsLv2Manager *lv2_manager);

Retrieve all filenames

Parameters

lv2_manager

the AgsLv2Manager

 

Returns

a NULL-terminated array of filenames

Since: 1.0.0


ags_lv2_manager_find_lv2_plugin ()

AgsLv2Plugin *
ags_lv2_manager_find_lv2_plugin (AgsLv2Manager *lv2_manager,
                                 gchar *filename,
                                 gchar *effect);

Lookup filename in loaded plugins.

Parameters

lv2_manager

the AgsLv2Manager

 

filename

the filename of the plugin

 

effect

the effect's name

 

Returns

the AgsLv2Plugin

Since: 1.0.0


ags_lv2_manager_load_blacklist ()

void
ags_lv2_manager_load_blacklist (AgsLv2Manager *lv2_manager,
                                gchar *blacklist_filename);

Load blacklisted plugin filenames.

Parameters

lv2_manager

the AgsLv2Manager

 

blacklist_filename

the filename as string

 

Since: 1.0.0


ags_lv2_manager_load_file ()

void
ags_lv2_manager_load_file (AgsLv2Manager *lv2_manager,
                           AgsTurtle *manifest,
                           AgsTurtle *turtle,
                           gchar *lv2_path,
                           gchar *filename);

Load filename specified plugin.

Parameters

lv2_manager

the AgsLv2Manager

 

manifest

the manifest

 

turtle

the loaded turtle

 

lv2_path

the lv2 path

 

filename

the filename of the plugin

 

Since: 1.0.0


ags_lv2_manager_load_preset ()

void
ags_lv2_manager_load_preset (AgsLv2Manager *lv2_manager,
                             AgsLv2Plugin *lv2_plugin,
                             AgsTurtle *preset);

Load preset.

Parameters

lv2_manager

the AgsLv2Manager

 

lv2_plugin

the AgsLv2Plugin

 

preset

the AgsTurtle

 

Since: 1.0.0.8


ags_lv2_manager_load_default_directory ()

void
ags_lv2_manager_load_default_directory
                               (AgsLv2Manager *lv2_manager);

Loads all available plugins.

Parameters

lv2_manager

the AgsLv2Manager

 

Since: 1.0.0


ags_lv2_manager_get_instance ()

AgsLv2Manager *
ags_lv2_manager_get_instance ();

Get instance.

Returns

the AgsLv2Manager

Since: 1.0.0


ags_lv2_manager_new ()

AgsLv2Manager *
ags_lv2_manager_new (gchar *locale);

Creates an AgsLv2Manager

Parameters

locale

the default locale

 

Returns

a new AgsLv2Manager

Since: 1.0.0


AGS_IS_LV2_MANAGER()

#define AGS_IS_LV2_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LV2_MANAGER))

AGS_LV2_MANAGER()

#define AGS_LV2_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LV2_MANAGER, AgsLv2Manager))

AGS_LV2_MANAGER_CLASS()

#define AGS_LV2_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LV2_MANAGER, AgsLv2ManagerClass))

AGS_LV2_MANAGER_GET_CLASS()

#define AGS_LV2_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LV2_MANAGER, AgsLv2ManagerClass))

ags_lv2_manager_get_type ()

GType
ags_lv2_manager_get_type (void);

Types and Values

AGS_LV2_MANAGER_DEFAULT_LOCALE

#define AGS_LV2_MANAGER_DEFAULT_LOCALE "en-gb\0"

AGS_TYPE_LV2_MANAGER

#define AGS_TYPE_LV2_MANAGER                (ags_lv2_manager_get_type())

struct AgsLv2Manager

struct AgsLv2Manager;

struct AgsLv2ManagerClass

struct AgsLv2ManagerClass {
  GObjectClass object;
};

Property Details

The “locale” property

  “locale”                   gchar *

The assigned locale.

Flags: Read / Write

Default value: NULL

Since: 1.0.0