| GStreamer Buzztard Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
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);
void gstbml_calculate_buffer_frames (GstBML *bml);
update the buffersize for calculation (in samples) buffer_frames = samples_per_minute/ticks_per_minute
|
bml instance |
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.
|
the instance class |
|
name to build name and nick from |
|
desc to build desc from |
|
target for name |
|
target for nick |
|
target for description |
void gstbml_dispose (GstBML *bml);
Dispose common buzzmachine data.
|
bml instance |
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.
|
the element instance |
|
the data buffer |
|
indication wheter the buffer has values != 0.0 |
void gstbml_get_param (GstBMLParameterTypes type,gpointer addr,GValue *value);
Read a parameter according to type from addr into the value.
|
parameter type |
|
the address pointing to the value |
|
the target |
void gstbml_set_param (GstBMLParameterTypes type,gpointer addr,const GValue *value);
Write a parameter according to type to addr from the value.
|
parameter type |
|
the address pointing to the value |
|
the source |
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.
|
the instance class |
|
the property number |
|
the parameter type |
|
the enum type (or 0) |
|
the property name |
|
the property nick |
|
the property description |
|
extra property flags |
|
minimum value |
|
maximum value |
|
unset value (neutral) |
|
default value |
Returns : |
the param spec |