diff options
author | XANTRONIX Development | 2022-03-19 12:25:36 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-19 12:25:46 -0400 |
commit | 06e6fa5bf0d8fd714adca83703435e2274ba8698 (patch) | |
tree | 45a038762abf1d58c8208f354fea75c82effee08 /include | |
parent | c48eabffbe6dc192dedad73c86616ba26f7ed6d3 (diff) | |
download | xas-06e6fa5bf0d8fd714adca83703435e2274ba8698.tar.gz xas-06e6fa5bf0d8fd714adca83703435e2274ba8698.tar.bz2 xas-06e6fa5bf0d8fd714adca83703435e2274ba8698.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/xas/drone.h | 1 | ||||
-rw-r--r-- | include/xas/vox.h | 5 |
2 files changed, 2 insertions, 4 deletions
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 <xas/vox.h> #include <xas/seq.h> -#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 <xas/object.h> #include <xas/audio.h> -#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); |