Top | ![]() |
![]() |
![]() |
![]() |
#define | AGS_OSC_METER_CONTROLLER_DEFAULT_MONITOR_TIMEOUT |
enum | AgsOscMeterControllerFlags |
struct | AgsOscMeterControllerMonitor |
#define | AGS_TYPE_OSC_METER_CONTROLLER |
struct | AgsOscMeterController |
struct | AgsOscMeterControllerClass |
#define AGS_OSC_METER_CONTROLLER_MONITOR(ptr) ((AgsOscMeterControllerMonitor *)(ptr))
gboolean ags_osc_meter_controller_test_flags (AgsOscMeterController *osc_meter_controller
,guint flags
);
Test flags
to be set on osc_meter_controller
.
Since: 2.1.0
void ags_osc_meter_controller_set_flags (AgsOscMeterController *osc_meter_controller
,guint flags
);
Set flags.
Since: 2.1.0
void ags_osc_meter_controller_unset_flags (AgsOscMeterController *osc_meter_controller
,guint flags
);
Unset flags.
Since: 2.1.0
AgsOscMeterControllerMonitor * ags_osc_meter_controller_monitor_alloc ();
Allocate AgsOscMeterControllerMonitor.
Since: 2.1.0
void
ags_osc_meter_controller_monitor_free (AgsOscMeterControllerMonitor *monitor
);
Free monitor
.
Since: 2.1.0
void
ags_osc_meter_controller_monitor_ref (AgsOscMeterControllerMonitor *monitor
);
Increase reference count of monitor
.
Since: 2.1.0
void
ags_osc_meter_controller_monitor_unref
(AgsOscMeterControllerMonitor *monitor
);
Decrease reference count of monitor
. If ref count is less or equal 0
monitor
is freed.
Since: 2.1.0
GList * ags_osc_meter_controller_monitor_find_path (GList *monitor
,gchar *path
);
Find path
in monitor
.
Since: 2.1.0
GList * ags_osc_meter_controller_monitor_find_port (GList *monitor
,AgsPort *port
);
Find port
in monitor
.
Since: 2.1.0
void ags_osc_meter_controller_add_monitor (AgsOscMeterController *osc_meter_controller
,AgsOscMeterControllerMonitor *monitor
);
void ags_osc_meter_controller_remove_monitor (AgsOscMeterController *osc_meter_controller
,AgsOscMeterControllerMonitor *monitor
);
gboolean ags_osc_meter_controller_contains_monitor (AgsOscMeterController *osc_meter_controller
,AgsOscConnection *osc_connection
,AgsPort *port
);
void
ags_osc_meter_controller_start_monitor
(AgsOscMeterController *osc_meter_controller
);
Start monitoring.
Since: 2.1.0
void
ags_osc_meter_controller_stop_monitor (AgsOscMeterController *osc_meter_controller
);
Stop monitoring.
Since: 2.1.0
gpointer ags_osc_meter_controller_monitor_meter (AgsOscMeterController *osc_meter_controller
,AgsOscConnection *osc_connection
,unsigned char *message
,guint message_size
);
Get meter.
osc_meter_controller |
||
osc_connection |
the AgsOscConnection |
|
message |
the message received |
|
message_size |
the message size |
Since: 2.1.0
AgsOscMeterController * ags_osc_meter_controller_new ();
Instantiate new AgsOscMeterController
Since: 2.1.0
#define AGS_IS_OSC_METER_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_OSC_METER_CONTROLLER))
#define AGS_OSC_METER_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OSC_METER_CONTROLLER, AgsOscMeterController))
#define AGS_OSC_METER_CONTROLLER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_OSC_METER_CONTROLLER, AgsOscMeterControllerClass))
#define AGS_OSC_METER_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_OSC_METER_CONTROLLER, AgsOscMeterControllerClass))
#define AGS_OSC_METER_CONTROLLER_DEFAULT_MONITOR_TIMEOUT (1.0 / 30.0)
struct AgsOscMeterControllerMonitor { volatile gint ref_count; AgsOscConnection *osc_connection; gchar *path; AgsPort *port; };
#define AGS_TYPE_OSC_METER_CONTROLLER (ags_osc_meter_controller_get_type())
struct AgsOscMeterControllerClass { AgsOscControllerClass osc_controller; void (*start_monitor)(AgsOscMeterController *osc_meter_controller); void (*stop_monitor)(AgsOscMeterController *osc_meter_controller); gpointer (*monitor_meter)(AgsOscMeterController *osc_meter_controller, AgsOscConnection *osc_connection, unsigned char *message, guint message_size); };
“monitor-meter”
signalgpointer user_function (AgsOscMeterController *osc_meter_controller, GObject *osc_connection, gpointer message, guint message_size, gpointer user_data)
The ::monitor-meter signal is emited during get data of meter controller.
osc_meter_controller |
||
osc_connection |
the AgsOscConnection |
|
message |
the message received |
|
message_size |
the message size |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.1.0
“start-monitor”
signalvoid user_function (AgsOscMeterController *osc_meter_controller, gpointer user_data)
The ::start-monitor signal is emited during start of monitoring meter.
Flags: Run Last
Since: 2.1.0
“stop-monitor”
signalvoid user_function (AgsOscMeterController *osc_meter_controller, gpointer user_data)
The ::stop-monitor signal is emited during stop of monitoring meter.
Flags: Run Last
Since: 2.1.0