AgsLv2Plugin

AgsLv2Plugin — The lv2 plugin class

Functions

Properties

AgsTurtle * turtle Read / Write
gchar * uri Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsBasePlugin
        ╰── AgsLv2Plugin

Includes

#include <ags/object/ags_lv2_plugin.h>

Description

The AgsLv2Plugin loads/unloads a Lv2 plugin.

Functions

AGS_LV2_PLUGIN_DESCRIPTOR()

#define AGS_LV2_PLUGIN_DESCRIPTOR(ptr) ((LV2_Descriptor *)(ptr))


AGS_LV2_EVENT_BUFFER()

#define AGS_LV2_EVENT_BUFFER(ptr) ((LV2_Event_Buffer *)(ptr))


AGS_LV2_EVENT()

#define AGS_LV2_EVENT(ptr) ((LV2_Event *)(ptr))


AGS_LV2_EVENT_DATA()

#define AGS_LV2_EVENT_DATA(ptr) ((void *)(ptr + sizeof(LV2_Event)))


AGS_LV2_ATOM_SEQUENCE()

#define AGS_LV2_ATOM_SEQUENCE(ptr) ((LV2_Atom_Sequence *)(ptr))


ags_lv2_plugin_alloc_event_buffer ()

void *
ags_lv2_plugin_alloc_event_buffer (guint buffer_size);

Allocates a LV2_Event_Buffer

Parameters

buffer_size

the allocated size

 

Returns

the new event buffer

Since: 0.7.7


ags_lv2_plugin_concat_event_buffer ()

void *
ags_lv2_plugin_concat_event_buffer (void *buffer0,
                                    ...);

Concats the event buffers.

Parameters

buffer0

the first buffer

 

...

NULL terminated variadict arguments

 

Returns

The newly allocated event buffer

Since: 0.7.7


ags_lv2_plugin_event_buffer_append_midi ()

gboolean
ags_lv2_plugin_event_buffer_append_midi
                               (void *event_buffer,
                                guint buffer_size,
                                snd_seq_event_t *events,
                                guint event_count);

Append MIDI data to event buffer.

Parameters

event_buffer

the event buffer

 

buffer_size

the event buffer size

 

events

the events to write

 

event_count

the number of events to write

 

Returns

TRUE on success otherwise FALSE

Since: 0.7.7


ags_lv2_plugin_clear_event_buffer ()

void
ags_lv2_plugin_clear_event_buffer (void *event_buffer,
                                   guint buffer_size);

Clear the event buffer.

Parameters

event_buffer

the event buffer

 

buffer_size

size of event_buffer

 

Since: 0.7.7


ags_lv2_plugin_alloc_atom_sequence ()

void *
ags_lv2_plugin_alloc_atom_sequence (guint sequence_size);

Allocates a LV2_Atom_Sequence

Parameters

sequence_size

the requested size

 

Returns

the new atom sequence

Since: 0.7.7


ags_lv2_plugin_concat_atom_sequence ()

void *
ags_lv2_plugin_concat_atom_sequence (void *sequence0,
                                     ...);


ags_lv2_plugin_atom_sequence_append_midi ()

gboolean
ags_lv2_plugin_atom_sequence_append_midi
                               (void *atom_sequence,
                                guint sequence_size,
                                snd_seq_event_t *events,
                                guint event_count);

Append MIDI data to atom sequence.

Parameters

atom_sequence

the atom sequence

 

sequence_size

the atom sequence size

 

events

the events to write

 

event_count

the number of events to write

 

Returns

TRUE on success otherwise FALSE

Since: 0.7.7


ags_lv2_plugin_clear_atom_sequence ()

void
ags_lv2_plugin_clear_atom_sequence (void *atom_sequence,
                                    guint sequence_size);

Clear the atom sequence.

Parameters

atom_sequence

the atom sequence

 

sequence_size

size of atom_sequence

 

Since: 0.7.7


ags_lv2_plugin_new ()

AgsLv2Plugin *
ags_lv2_plugin_new (AgsTurtle *turtle,
                    gchar *filename,
                    gchar *effect,
                    gchar *uri,
                    guint effect_index);

Creates an AgsLv2Plugin

Parameters

turtle

the turtle

 

filename

the plugin .so

 

effect

the effect's string representation

 

uri

the effect's uri

 

effect_index

the effect's index

 

Returns

a new AgsLv2Plugin

Since: 0.7.6

Types and Values

enum AgsLv2PluginFlags

Members

AGS_LV2_PLUGIN_IS_SYNTHESIZER

   

Property Details

The “turtle” property

  “turtle”                   AgsTurtle *

The turtle this plugin is located in.

Flags: Read / Write

Since: 0.7.6


The “uri” property

  “uri”                      gchar *

The uri this plugin is located in.

Flags: Read / Write

Default value: NULL

Since: 0.7.6