summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-17 20:40:30 -0400
committerXANTRONIX Development2022-03-17 20:40:30 -0400
commit36c3f7e4a45cd7d6c1799ae7abba9a8dc2ae4dee (patch)
tree5f5a25c4bd3cc7644004bc23990a2e043265e50c
parent9ea2180168efcd4e992b03fa1099dee6f3a4686b (diff)
downloadxas-36c3f7e4a45cd7d6c1799ae7abba9a8dc2ae4dee.tar.gz
xas-36c3f7e4a45cd7d6c1799ae7abba9a8dc2ae4dee.tar.bz2
xas-36c3f7e4a45cd7d6c1799ae7abba9a8dc2ae4dee.zip
Change order of case statements to enum order
-rw-r--r--src/seq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/seq.c b/src/seq.c
index c9d22fd..54d573d 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -498,12 +498,6 @@ error_malloc_ev:
static int event_trigger(xas_spatial_scene *scene, xas_seq_event *ev) {
switch (ev->type) {
- case XAS_SEQ_EVENT_OFF:
- return xas_object_stop(ev->object, ev->index);
-
- case XAS_SEQ_EVENT_ON:
- return xas_object_start(ev->object, ev->index);
-
case XAS_SEQ_EVENT_SET_POSITION:
xas_spatial_scene_position_object(scene,
ev->object,
@@ -538,6 +532,12 @@ static int event_trigger(xas_spatial_scene *scene, xas_seq_event *ev) {
break;
+ case XAS_SEQ_EVENT_OFF:
+ return xas_object_stop(ev->object, ev->index);
+
+ case XAS_SEQ_EVENT_ON:
+ return xas_object_start(ev->object, ev->index);
+
case XAS_SEQ_EVENT_STOP:
break;
}