libswami Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
SwamiRoot; SwamiRoot * swami_root_new (void
); #define swami_root_get_patch_items (swami) SwamiRoot * swami_get_root (gpointer object
); IpatchList * swami_root_get_objects (SwamiRoot *root
); void swami_root_add_object (SwamiRoot *root
,GObject *object
); GObject * swami_root_new_object (SwamiRoot *root
,const char *type_name
); void swami_root_prepend_object (SwamiRoot *root
,GObject *parent
,GObject *object
); #define swami_root_append_object (root, parent, object) void swami_root_insert_object_before (SwamiRoot *root
,GObject *parent
,GObject *sibling
,GObject *object
); gboolean swami_root_patch_load (SwamiRoot *root
,const char *filename
,IpatchItem **item
,GError **err
); gboolean swami_root_patch_save (IpatchItem *item
,const char *filename
,GError **err
);
"patch-path" gchar* : Read / Write "patch-root" SwamiContainer* : Read "patch-search-path" gchar* : Read / Write "sample-format" gchar* : Read / Write "sample-max-size" gint : Read / Write "sample-path" gchar* : Read / Write "swap-max-waste" gint : Read / Write
"object-add" : Run First "swami-prop-notify" : Run First / No Recursion / Has Details / No Hooks
SwamiRoot * swami_root_new (void
);
Create a new Swami root object which is a toplevel container for patches, objects, configuration data and state history.
Returns : |
New Swami root object |
SwamiRoot * swami_get_root (gpointer object
);
Gets the SwamiRoot object associated with a object
.
IpatchList * swami_root_get_objects (SwamiRoot *root
);
Get an iterator filled with toplevel objects that are the first children of a SwamiRoot object property tree.
|
Swami root object |
Returns : |
New object list with a reference count of 1 which the caller owns, remember to unref it when finished. |
void swami_root_add_object (SwamiRoot *root
,GObject *object
);
Add an object to a Swami root property tree. A reference is held on
the object for the root
object.
|
Swami root object |
|
Object to add |
GObject * swami_root_new_object (SwamiRoot *root
,const char *type_name
);
Like swami_root_add_object()
but creates a new object rather than using
an existing one.
|
Swami root object |
|
Name of GObject derived GType of object to create and add to a
root object.
|
Returns : |
The new GObject created or NULL on error. The caller owns a
reference on the new object and should unref it when done. The root
also owns a reference, until swami_root_remove_object() is called on it.
|
void swami_root_prepend_object (SwamiRoot *root
,GObject *parent
,GObject *object
);
Prepends an object to an object property tree in a root
object as
a child of parent
. Like swami_root_add_object()
but allows parent
to specified (rather than using the root
as the parent).
|
Swami root object |
|
New parent of object
|
|
Object to prepend |
void swami_root_insert_object_before (SwamiRoot *root
,GObject *parent
,GObject *sibling
,GObject *object
);
Inserts an object into an object property tree in a root
object as
a child of parent
and before sibling
.
|
Swami root object |
|
New parent of object
|
|
Sibling to insert object before or NULL to append
|
|
Object to insert |
gboolean swami_root_patch_load (SwamiRoot *root
,const char *filename
,IpatchItem **item
,GError **err
);
Load an instrument patch file and append to Swami object tree. The caller owns a reference to the returned patch object and should unref it when done with the object.
|
Swami root object to load into |
|
Name and path of file to load |
|
Location to store pointer to object that has been loaded into Swami
root object (or NULL ). Remember to unref the object when done with it
(not necessary of course if NULL was passed).
|
|
Location to store error info or NULL
|
Returns : |
TRUE on success, FALSE otherwise
|
"patch-path"
property"patch-path" gchar* : Read / Write
Default patch path.
Default value: NULL
"patch-root"
property"patch-root" SwamiContainer* : Read
Root container of instrument patch tree.
"patch-search-path"
property"patch-search-path" gchar* : Read / Write
Patch search path.
Default value: NULL
"sample-format"
property"sample-format" gchar* : Read / Write
Default sample format.
Default value: NULL
"sample-max-size"
property"sample-max-size" gint : Read / Write
Max sample size in megabytes.
Allowed values: >= 1
Default value: 32
"sample-path"
property"sample-path" gchar* : Read / Write
Default sample path.
Default value: NULL
"swap-max-waste"
property"swap-max-waste" gint : Read / Write
Max waste of sample swap in megabytes.
Allowed values: >= 1
Default value: 64