GstBml

GstBml — buzzmachine wrapper

Synopsis

void                gstbml_calculate_buffer_frames      (GstBML *bml);
void                gstbml_convert_names                (GObjectClass *klass,
                                                         gchar *tmp_name,
                                                         gchar *tmp_desc,
                                                         gchar **name,
                                                         gchar **nick,
                                                         gchar **desc);
void                gstbml_dispose                      (GstBML *bml);
void                gstbml_fix_data                     (GstElement *elem,
                                                         GstBuffer *buf,
                                                         gboolean has_data);
void                gstbml_get_param                    (GstBMLParameterTypes type,
                                                         gpointer addr,
                                                         GValue *value);
void                gstbml_set_param                    (GstBMLParameterTypes type,
                                                         gpointer addr,
                                                         const GValue *value);
GParamSpec *        gstbml_register_param               (GObjectClass *klass,
                                                         gint prop_id,
                                                         GstBMLParameterTypes type,
                                                         GType enum_type,
                                                         gchar *name,
                                                         gchar *nick,
                                                         gchar *desc,
                                                         gint flags,
                                                         gint min_val,
                                                         gint max_val,
                                                         gint no_val,
                                                         gint def_val);

Description

Wrapper for buzzmachine sound generators and effects.

Details

gstbml_calculate_buffer_frames ()

void                gstbml_calculate_buffer_frames      (GstBML *bml);

update the buffersize for calculation (in samples) buffer_frames = samples_per_minute/ticks_per_minute

bml :

bml instance

gstbml_convert_names ()

void                gstbml_convert_names                (GObjectClass *klass,
                                                         gchar *tmp_name,
                                                         gchar *tmp_desc,
                                                         gchar **name,
                                                         gchar **nick,
                                                         gchar **desc);

Convert charset encoding and make property-names unique.

klass :

the instance class

tmp_name :

name to build name and nick from

tmp_desc :

desc to build desc from

name :

target for name

nick :

target for nick

desc :

target for description

gstbml_dispose ()

void                gstbml_dispose                      (GstBML *bml);

Dispose common buzzmachine data.

bml :

bml instance

gstbml_fix_data ()

void                gstbml_fix_data                     (GstElement *elem,
                                                         GstBuffer *buf,
                                                         gboolean has_data);

Fixes elements that output denormalized values (sets them to 0.0). Also adjust gap-flags. unfortunately this is quite expensive, although extra gap flags help.

elem :

the element instance

buf :

the data buffer

has_data :

indication wheter the buffer has values != 0.0

gstbml_get_param ()

void                gstbml_get_param                    (GstBMLParameterTypes type,
                                                         gpointer addr,
                                                         GValue *value);

Read a parameter according to type from addr into the value.

type :

parameter type

addr :

the address pointing to the value

value :

the target

gstbml_set_param ()

void                gstbml_set_param                    (GstBMLParameterTypes type,
                                                         gpointer addr,
                                                         const GValue *value);

Write a parameter according to type to addr from the value.

type :

parameter type

addr :

the address pointing to the value

value :

the source

gstbml_register_param ()

GParamSpec *        gstbml_register_param               (GObjectClass *klass,
                                                         gint prop_id,
                                                         GstBMLParameterTypes type,
                                                         GType enum_type,
                                                         gchar *name,
                                                         gchar *nick,
                                                         gchar *desc,
                                                         gint flags,
                                                         gint min_val,
                                                         gint max_val,
                                                         gint no_val,
                                                         gint def_val);

Normalize data and create a paramspec.

klass :

the instance class

prop_id :

the property number

type :

the parameter type

enum_type :

the enum type (or 0)

name :

the property name

nick :

the property nick

desc :

the property description

flags :

extra property flags

min_val :

minimum value

max_val :

maximum value

no_val :

unset value (neutral)

def_val :

default value

Returns :

the param spec