Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstBin ╰── BtMachine ╰── BtSinkMachine
Sinks are machines that do playback or recording of the song. The sink-machine utilizes the BtSinkBin to transparently switch elements between record (encoding) and playback.
BtSinkMachine * bt_sink_machine_new (const BtSong * const song
,const gchar * const id
,GError **err
);
Create a new instance. The machine is automatically added to the setup from the given song object. You don't need to add the machine with
bt_setup_add_machine(setup,BT_MACHINE(machine));
.
The element used for this machine is BtSinkBin which is configured according to the use-case (playback, recording). The playback device is taken from the BtSettings.
struct BtSinkMachine;
Sub-class of a BtMachine that implements a signal output (a machine with inputs only).
Use this with bt_machine_get_pattern_by_index()
to get the command patterns.