From 316ab6ba76addc02a229c1a852182be55df29307 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 10 Mar 2022 15:28:58 -0500 Subject: Implement sequence stop event --- include/xas/seq.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/xas') diff --git a/include/xas/seq.h b/include/xas/seq.h index f7ec322..de8567e 100644 --- a/include/xas/seq.h +++ b/include/xas/seq.h @@ -19,7 +19,8 @@ enum xas_seq_event_type { XAS_SEQ_EVENT_SET_SYNTH_TYPE, XAS_SEQ_EVENT_SET_BANK_INDEX, XAS_SEQ_EVENT_SET_PLAYER_FLAGS, - XAS_SEQ_EVENT_SPEECH + XAS_SEQ_EVENT_SPEECH, + XAS_SEQ_EVENT_STOP }; enum xas_seq_object_type { @@ -120,6 +121,9 @@ int xas_seq_add_phrase(xas_seq *seq, struct timeval timestamp, const char *phrase); +int xas_seq_add_stop(xas_seq *seq, + struct timeval timestamp); + int xas_seq_play(xas_seq *seq, xas_audio_stream *sink); #endif /* _XAS_SEQ_H */ -- cgit v1.2.3