From 5e36a3241c8b0cee8b9cfd072e8b80add88e2487 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 13 Mar 2022 19:47:25 -0400 Subject: Instantiate vox stream only upon generation --- include/xas/drone.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/xas/drone.h b/include/xas/drone.h index d7dc4c0..9a7249b 100644 --- a/include/xas/drone.h +++ b/include/xas/drone.h @@ -11,9 +11,6 @@ #define XAS_DRONE_VOX_BUFFER_SIZE 735 #define XAS_DRONE_VOX_TEXT2WAVE_PATH "/usr/bin/text2wave" -#define XAS_DRONE_VOX_DEFAULT_SPEED 1.0f -#define XAS_DRONE_VOX_DEFAULT_VOICE "voice_cmu_us_slt_cg" - #define XAS_DRONE_CHAMBER_BASS_FREQUENCY 20 /* Hz */ #define XAS_DRONE_CHAMBER_BASS_TYPE XAS_SYNTH_SQUARE @@ -27,10 +24,6 @@ typedef struct _xas_drone { typedef struct _xas_drone_vox { xas_drone *drone; xas_vox *obj; - xas_audio_stream *source; - - const char *voice; - float speed; } xas_drone_vox; typedef struct _xas_drone_chamber_interval { @@ -83,9 +76,9 @@ xas_drone_vox *xas_drone_vox_new(xas_drone *drone); void xas_drone_vox_destroy(xas_drone_vox *vox); -void xas_drone_vox_set_voice(xas_drone_vox *vox, const char *voice); +int xas_drone_vox_set_voice(xas_drone_vox *vox, const char *voice); -void xas_drone_vox_set_speed(xas_drone_vox *vox, float speed); +int xas_drone_vox_set_speed(xas_drone_vox *vox, float speed); int xas_drone_vox_vsayf(xas_drone_vox *vox, const char *format, -- cgit v1.2.3