From ab9f3166f07a43fd739262530575f30432d7782a Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 26 Feb 2022 23:36:50 -0500 Subject: Switch to enum type for vox state --- include/xas/vox.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/xas') diff --git a/include/xas/vox.h b/include/xas/vox.h index 917eda1..641fe3a 100644 --- a/include/xas/vox.h +++ b/include/xas/vox.h @@ -7,20 +7,22 @@ #include -#define XAS_VOX_IDLE 0 -#define XAS_VOX_ACTIVE (1 << 0) typedef struct _xas_vox { +enum xas_vox_state { + XAS_VOX_IDLE, + XAS_VOX_ACTIVE +}; xas_audio_format format; size_t buffer_size; - int flags; const char *text2wave_path; int argn; char **args; + enum xas_vox_state state; int pid, stdin, -- cgit v1.2.3