| Top |
BtWireBtWire — class for a connection of two BtMachines |
| void | bt_wire_add_wire_pattern () |
| void | bt_wire_controller_change_value () |
| void | bt_wire_get_param_details () |
| glong | bt_wire_get_param_index () |
| const gchar * | bt_wire_get_param_name () |
| GParamSpec * | bt_wire_get_param_spec () |
| GType | bt_wire_get_param_type () |
| BtWirePattern * | bt_wire_get_pattern () |
| BtWire * | bt_wire_new () |
| gboolean | bt_wire_reconnect () |
| gpointer | analyzers | Read / Write |
| gpointer | construction-error | Read / Write / Construct Only |
| BtMachine * | dst | Read / Write / Construct Only |
| GstElement * | gain | Read |
| gulong | num-params | Read / Write |
| GstElement * | pan | Read |
| gpointer | properties | Read |
| BtSong * | song | Read / Write / Construct Only |
| BtMachine * | src | Read / Write / Construct Only |
Abstracts connection between two BtMachines. After creation, the elements are connected. In contrast to directly wiring GstElements this insert needed conversion elements automatically.
Furthermore each wire has a volume and if possible panorama/balance element. Volume and panorama/balance can be sequenced like machine parameters in BtWirePattern objects.
void bt_wire_add_wire_pattern (const BtWire * const self,const BtPattern * const pattern,const BtWirePattern * const wire_pattern);
Add the supplied wire-pattern to the wire. This is automatically done by
bt_wire_pattern_new().
void bt_wire_controller_change_value (const BtWire * const self,const gulong param,const GstClockTime timestamp,GValue * const value);
Depending on wheter the given value is NULL, sets or unsets the controller value for the specified param and at the given time.
void bt_wire_get_param_details (const BtWire * const self,const gulong index,GParamSpec **pspec,GValue **min_val,GValue **max_val);
Retrieves the details of a voice param. Any detail can be NULL if its not
wanted.
glong bt_wire_get_param_index (const BtWire *const self,const gchar * const name,GError **error);
Searches the list of registered param of a wire for a param of the given name and returns the index if found.
const gchar * bt_wire_get_param_name (const BtWire * const self,const gulong index);
Gets the param name. Do not modify returned content.
GParamSpec * bt_wire_get_param_spec (const BtWire * const self,const gulong index);
Retrieves the parameter specification for the param
GType bt_wire_get_param_type (const BtWire * const self,const gulong index);
Retrieves the GType of a param
BtWirePattern * bt_wire_get_pattern (const BtWire * const self,const BtPattern * const pattern);
Gets the wire-pattern that hold the automation data for this wire
.
BtWire * bt_wire_new (const BtSong *song,const BtMachine *src_machine,const BtMachine *dst_machine,GError **err);
Create a new instance. The new wire is automaticall added to a songs setup. You don't need to call
bt_setup_add_wire(setup,wire);.
song |
the song the new instance belongs to |
|
src_machine |
the data source (BtSourceMachine or BtProcessorMachine) |
|
dst_machine |
the data sink (BtSinkMachine or BtProcessorMachine) |
|
err |
inform about failed instance creation |
“construction-error” property “construction-error” gpointer
signal failed instance creation.
Flags: Read / Write / Construct Only
“dst” property“dst” BtMachine *
dst machine object, the wire links to.
Flags: Read / Write / Construct Only
“num-params” property “num-params” gulong
number of params for the wire.
Flags: Read / Write
Allowed values: <= 2
“song” property“song” BtSong *
the song object, the wire belongs to.
Flags: Read / Write / Construct Only
“src” property“src” BtMachine *
src machine object, the wire links to.
Flags: Read / Write / Construct Only
“pattern-created” signalvoid user_function (BtWire *self, BtWirePattern *tick, gpointer user_data)
signals that a param of this wire-pattern has been changed
self |
the wire-pattern object that emitted the signal |
|
tick |
the tick position inside the pattern |
|
param |
the parameter index |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks