From 06e6fa5bf0d8fd714adca83703435e2274ba8698 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 19 Mar 2022 12:25:36 -0400 Subject: Use larger default vox buffer size of 20480 Use larger default vox buffer size of 20480 to improve performance and reduce number of read()/write() system calls --- include/xas/drone.h | 1 - include/xas/vox.h | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'include/xas') diff --git a/include/xas/drone.h b/include/xas/drone.h index df16040..a7a2d4f 100644 --- a/include/xas/drone.h +++ b/include/xas/drone.h @@ -9,7 +9,6 @@ #include #include -#define XAS_DRONE_VOX_BUFFER_SIZE 735 #define XAS_DRONE_VOX_TEXT2WAVE_PATH "/usr/bin/text2wave" #define XAS_DRONE_CHAMBER_BASS_FREQUENCY 20 /* Hz */ diff --git a/include/xas/vox.h b/include/xas/vox.h index b3ea0ed..71a312d 100644 --- a/include/xas/vox.h +++ b/include/xas/vox.h @@ -8,7 +8,8 @@ #include #include -#define XAS_VOX_DEFAULT_GAIN 1.0f +#define XAS_VOX_DEFAULT_GAIN 1.0f +#define XAS_VOX_DEFAULT_BUFFER_SIZE 20480 #define XAS_VOX_SETTINGS_TMP_PATH "/tmp/xas-vox.XXXXXX" #define XAS_VOX_SETTINGS_TMP_PATHLEN 64 @@ -44,13 +45,11 @@ typedef struct _xas_vox { } xas_vox; xas_vox *xas_vox_new_args(xas_audio_format format, - size_t buffer_size, const char *text2wave_path, int argn, char **args); xas_vox *xas_vox_new(xas_audio_format format, - size_t buffer_size, const char *text2wave_path); void xas_vox_destroy(xas_vox *vox); -- cgit v1.2.3