Top | ![]() |
![]() |
![]() |
![]() |
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 |
gchar * | pretty-name | 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 wire groups of the BtPattern objects on the target machine (that means that source-machines don't have the controls).
BtParameterGroup *
bt_wire_get_param_group (const BtWire * const self
);
Get the parameter group.
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 automatically 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 |
gboolean
bt_wire_reconnect (BtWire *self
);
Call this method after internal elements in a BtMachine have changed, but failed to link.
gboolean bt_wire_can_link (const BtMachine * const src
,const BtMachine * const dst
);
Check if we don't have such a wire yet and if we can connect the machines. We can connect if the data flow direction is correct (sources to effects to sinks) and if the new connect is not creating cycles in the graph.
“analyzers”
property“analyzers” gpointer
list of wire analyzers.
Owner: BtWire
Flags: Read / Write
“construction-error”
property“construction-error” gpointer
signal failed instance creation.
Owner: BtWire
Flags: Read / Write / Construct Only
“dst”
property“dst” BtMachine *
dst machine object, the wire links to.
Owner: BtWire
Flags: Read / Write / Construct Only
“gain”
property “gain” GstElement *
the gain element for the connection.
Owner: BtWire
Flags: Read
“num-params”
property“num-params” gulong
number of params for the wire.
Owner: BtWire
Flags: Read / Write
Allowed values: <= 2
“pan”
property “pan” GstElement *
the panorama element for the connection.
Owner: BtWire
Flags: Read
“pretty-name”
property“pretty-name” gchar *
pretty-printed name for display purposes.
Owner: BtWire
Flags: Read
Default value: NULL
“song”
property“song” BtSong *
the song object, the wire belongs to.
Owner: BtWire
Flags: Read / Write / Construct Only
“src”
property“src” BtMachine *
src machine object, the wire links to.
Owner: BtWire
Flags: Read / Write / Construct Only