diff options
author | XANTRONIX Development | 2022-02-26 23:36:50 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-26 23:36:50 -0500 |
commit | ab9f3166f07a43fd739262530575f30432d7782a (patch) | |
tree | 260c6a10b3d7fbb35bc092f4fdefd4e2699d3e4f /include/xas | |
parent | 51806621006a9d54d368c7c033e59b2a3818f5ae (diff) | |
download | xas-ab9f3166f07a43fd739262530575f30432d7782a.tar.gz xas-ab9f3166f07a43fd739262530575f30432d7782a.tar.bz2 xas-ab9f3166f07a43fd739262530575f30432d7782a.zip |
Switch to enum type for vox state
Diffstat (limited to 'include/xas')
-rw-r--r-- | include/xas/vox.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 <xas/audio.h> -#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, |