From 23044950ddda47604d30fd81127647707dcce09c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 2 Feb 2022 00:46:14 -0500 Subject: Implement xas_vox_active() Implement xas_vox_active() to return true if the voice module is currently active --- src/vox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/vox.c b/src/vox.c index dd267db..df3e084 100644 --- a/src/vox.c +++ b/src/vox.c @@ -267,6 +267,10 @@ int xas_vox_say(xas_vox *vox, const char *message) { return xas_vox_sayf(vox, "%s", message); } +int xas_vox_active(xas_vox *vox) { + return vox->flags & XAS_VOX_ACTIVE; +} + xas_audio_stream *xas_vox_stream_new(xas_vox *vox) { return xas_audio_stream_new_source((xas_audio_fill)vox_fill, (xas_audio_cleanup)vox_cleanup, -- cgit v1.2.3