ev_cntr = ALSASeq.EventCntr.new(2)
ev_cntr.set_event_type(0, ALSASeq.EventType.START)
-ev_cntr.set_tstamp_mode(0, ALSASeq.EventTimestampMode.REAL)
+ev_cntr.set_tstamp_mode(0, ALSASeq.EventTstampMode.REAL)
ev_cntr.set_time_mode(0, ALSASeq.EventTimeMode.REL)
ev_cntr.set_priority_mode(0, ALSASeq.EventPriorityMode.NORMAL)
ev_cntr.set_tag(0, 0)
ev_cntr.set_queue_data(0, data)
ev_cntr.set_event_type(1, ALSASeq.EventType.CONTROLLER)
-ev_cntr.set_tstamp_mode(1, ALSASeq.EventTimestampMode.REAL)
+ev_cntr.set_tstamp_mode(1, ALSASeq.EventTstampMode.REAL)
ev_cntr.set_time_mode(1, ALSASeq.EventTimeMode.REL)
ev_cntr.set_priority_mode(1, ALSASeq.EventPriorityMode.NORMAL)
ev_cntr.set_tag(1, 10)
print(' tag:', tag)
_, queue_id = ev_cntr.get_queue_id(i)
print(' queue-id:', queue_id)
- if tstamp_mode == ALSASeq.EventTimestampMode.TICK:
+ if tstamp_mode == ALSASeq.EventTstampMode.TICK:
_, tick_time = ev_cntr.get_tick_time(i)
print(' tick-time:', tick_time)
else:
} ALSASeqEventType;
/**
- * ALSASeqEventTimestampMode:
- * @ALSASEQ_EVENT_TIMESTAMP_MODE_TICK: The timestamp includes tick count.
- * @ALSASEQ_EVENT_TIMESTAMP_MODE_REAL: The timestamp includes real time.
+ * ALSASeqEventTstampMode:
+ * @ALSASEQ_EVENT_TSTAMP_MODE_TICK: The time stamp includes tick count.
+ * @ALSASEQ_EVENT_TSTAMP_MODE_REAL: The time stamp includes real time.
*
- * A set of enumeration for the mode of timestamp.
+ * A set of enumeration for the mode of time stamp.
*/
typedef enum {
- ALSASEQ_EVENT_TIMESTAMP_MODE_TICK = SNDRV_SEQ_TIME_STAMP_TICK,
- ALSASEQ_EVENT_TIMESTAMP_MODE_REAL = SNDRV_SEQ_TIME_STAMP_REAL,
-} ALSASeqEventTimestampMode;
+ ALSASEQ_EVENT_TSTAMP_MODE_TICK = SNDRV_SEQ_TIME_STAMP_TICK,
+ ALSASEQ_EVENT_TSTAMP_MODE_REAL = SNDRV_SEQ_TIME_STAMP_REAL,
+} ALSASeqEventTstampMode;
/**
* ALSASeqEventTimeMode:
/**
* ALSASeqPortSubscribeFlag:
* @ALSASEQ_PORT_SUBSCRIBE_FLAG_EXCLUSIVE: The subscription can be changed by originator.
- * @ALSASEQ_PORT_SUBSCRIBE_FLAG_TIMESTAMP: Any event for this subscription has timestamp.
- * @ALSASEQ_PORT_SUBSCRIBE_FLAG_TIME_REAL: The timestamp on the event from the port has real time.
+ * @ALSASEQ_PORT_SUBSCRIBE_FLAG_TSTAMP: Any event for this subscription has time stamp.
+ * @ALSASEQ_PORT_SUBSCRIBE_FLAG_TIME_REAL: The time stamp on the event from the port has real time,
+ * else tick time.
*
* A set of flags for subscription conditions.
*/
typedef enum /*< flags >*/
{
ALSASEQ_PORT_SUBSCRIBE_FLAG_EXCLUSIVE = SNDRV_SEQ_PORT_SUBS_EXCLUSIVE,
- ALSASEQ_PORT_SUBSCRIBE_FLAG_TIMESTAMP = SNDRV_SEQ_PORT_SUBS_TIMESTAMP,
+ ALSASEQ_PORT_SUBSCRIBE_FLAG_TSTAMP = SNDRV_SEQ_PORT_SUBS_TIMESTAMP,
ALSASEQ_PORT_SUBSCRIBE_FLAG_TIME_REAL = SNDRV_SEQ_PORT_SUBS_TIME_REAL,
} ALSASeqPortSubscribeFlag;
"alsaseq_port_cap_flag_get_type";
"alsaseq_port_attr_flag_get_type";
"alsaseq_event_type_get_type";
- "alsaseq_event_timestamp_mode_get_type";
+ "alsaseq_event_tstamp_mode_get_type";
"alsaseq_event_time_mode_get_type";
"alsaseq_event_length_mode_get_type";
"alsaseq_event_priority_mode_get_type";
* alsaseq_event_cntr_get_tstamp_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: (out): The mode of timestamping, one of [enum@EventTimestampMode].
+ * @mode: (out): The mode of timestamping, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Get the mode of timestamping for the event pointed by the index.
* Returns: %TRUE when the overall operation finishes successfully, else %FALSE.
*/
gboolean alsaseq_event_cntr_get_tstamp_mode(ALSASeqEventCntr *self, gsize index,
- ALSASeqEventTimestampMode *mode, GError **error)
+ ALSASeqEventTstampMode *mode, GError **error)
{
ALSASeqEventCntrPrivate *priv;
struct event_iterator iter;
ev = event_iterator_find(&iter, index);
g_return_val_if_fail(ev != NULL, FALSE);
- *mode = (ALSASeqEventTimestampMode)(ev->flags & SNDRV_SEQ_TIME_STAMP_MASK);
+ *mode = (ALSASeqEventTstampMode)(ev->flags & SNDRV_SEQ_TIME_STAMP_MASK);
return TRUE;
}
* alsaseq_event_cntr_set_tstamp_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: The mode of timestamping, one of [enum@EventTimestampMode].
+ * @mode: The mode of timestamping, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Set the mode of timestamping for the event pointed by the index.
* Returns: %TRUE when the overall operation finishes successfully, else %FALSE.
*/
gboolean alsaseq_event_cntr_set_tstamp_mode(ALSASeqEventCntr *self, gsize index,
- ALSASeqEventTimestampMode mode, GError **error)
+ ALSASeqEventTstampMode mode, GError **error)
{
ALSASeqEventCntrPrivate *priv;
struct event_iterator iter;
* alsaseq_event_cntr_get_time_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: (out): The mode of time, one of [enum@EventTimestampMode].
+ * @mode: (out): The mode of time, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Get the mode of time for the event pointed by the index.
* alsaseq_event_cntr_set_time_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: The mode of time, one of [enum@EventTimestampMode].
+ * @mode: The mode of time, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Set the mode of time for the event pointed by the index.
* alsaseq_event_cntr_get_length_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: (out): The mode of length, one of [enum@EventTimestampMode].
+ * @mode: (out): The mode of length, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Get the mode of length for the event pointed by the index.
* alsaseq_event_cntr_get_priority_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: (out): The mode of priority, one of [enum@EventTimestampMode].
+ * @mode: (out): The mode of priority, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Get the mode of priority for the event pointed by the index.
* alsaseq_event_cntr_set_priority_mode:
* @self: A [class@EventCntr].
* @index: The index of event to set.
- * @mode: The mode of priority, one of [enum@EventTimestampMode].
+ * @mode: The mode of priority, one of [enum@EventTstampMode].
* @error: A [struct@GLib.Error].
*
* Set the mode of priority for the event pointed by the index.
ALSASeqEventType ev_type, GError **error);
gboolean alsaseq_event_cntr_get_tstamp_mode(ALSASeqEventCntr *self, gsize index,
- ALSASeqEventTimestampMode *mode, GError **error);
+ ALSASeqEventTstampMode *mode, GError **error);
gboolean alsaseq_event_cntr_set_tstamp_mode(ALSASeqEventCntr *self, gsize index,
- ALSASeqEventTimestampMode mode, GError **error);
+ ALSASeqEventTstampMode mode, GError **error);
gboolean alsaseq_event_cntr_get_time_mode(ALSASeqEventCntr *self, gsize index,
ALSASeqEventTimeMode *mode, GError **error);
break;
case SEQ_PORT_INFO_PROP_TSTAMP_MODE:
if (priv->info.flags & SNDRV_SEQ_PORT_FLG_TIME_REAL)
- g_value_set_enum(val, ALSASEQ_EVENT_TIMESTAMP_MODE_REAL);
+ g_value_set_enum(val, ALSASEQ_EVENT_TSTAMP_MODE_REAL);
else
- g_value_set_enum(val, ALSASEQ_EVENT_TIMESTAMP_MODE_TICK);
+ g_value_set_enum(val, ALSASEQ_EVENT_TSTAMP_MODE_TICK);
break;
case SEQ_PORT_INFO_PROP_TIME_QUEUE:
g_value_set_uchar(val, priv->info.time_queue);
g_param_spec_enum("timestamp-mode", "timestamp-mode",
"The type of timestamp. This is effective when the "
"timestamp-overwrite property is enabled.",
- ALSASEQ_TYPE_EVENT_TIMESTAMP_MODE,
- ALSASEQ_EVENT_TIMESTAMP_MODE_TICK,
+ ALSASEQ_TYPE_EVENT_TSTAMP_MODE,
+ ALSASEQ_EVENT_TSTAMP_MODE_TICK,
G_PARAM_READWRITE);
seq_port_info_props[SEQ_PORT_INFO_PROP_TIME_QUEUE] =
'NONE',
)
-event_timestamp_mode_types = (
+event_tstamp_mode_types = (
'TICK',
'REAL',
)
port_subscribe_flags = (
'EXCLUSIVE',
- 'TIMESTAMP',
+ 'TSTAMP',
'TIME_REAL',
)
ALSASeq.PortCapFlag: port_cap_flags,
ALSASeq.PortAttrFlag: port_attr_flags,
ALSASeq.EventType: event_types,
- ALSASeq.EventTimestampMode: event_timestamp_mode_types,
+ ALSASeq.EventTstampMode: event_tstamp_mode_types,
ALSASeq.EventTimeMode: event_time_mode_types,
ALSASeq.EventLengthMode: event_length_mode_types,
ALSASeq.EventPriorityMode: event_priority_mode_types,