From db032424069c9676659671f8af69b6b182765643 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 7 Mar 2022 20:13:43 -0500 Subject: Add sorted linked list to sequenced events --- include/xas/seq.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include/xas') diff --git a/include/xas/seq.h b/include/xas/seq.h index f7ec322..86acefc 100644 --- a/include/xas/seq.h +++ b/include/xas/seq.h @@ -50,15 +50,20 @@ struct _xas_seq_event { enum xas_synth_type synth_type; const char *phrase; }; +}; + +typedef struct _xas_seq_event_list_item xas_seq_event_list_item; - xas_seq_event *next; +struct _xas_seq_event_list_item { + xas_seq_event *ev; + xas_seq_event_list_item *next; }; typedef struct _xas_seq { xas_spatial_scene *scene; - xas_seq_event *first, - *last; + xas_seq_event_list_item *first, + *last; size_t buffer_size; } xas_seq; -- cgit v1.2.3