From 94473725d958e91a97bba36b3133790b8f15d715 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 19 Mar 2022 16:22:53 -0400 Subject: Calculate vox buffer size when creating stream --- include/xas/vox.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/xas/vox.h b/include/xas/vox.h index 71a312d..014659d 100644 --- a/include/xas/vox.h +++ b/include/xas/vox.h @@ -8,8 +8,8 @@ #include #include -#define XAS_VOX_DEFAULT_GAIN 1.0f -#define XAS_VOX_DEFAULT_BUFFER_SIZE 20480 +#define XAS_VOX_DEFAULT_GAIN 1.0f +#define XAS_VOX_DEFAULT_BLKSIZE 20480 #define XAS_VOX_SETTINGS_TMP_PATH "/tmp/xas-vox.XXXXXX" #define XAS_VOX_SETTINGS_TMP_PATHLEN 64 @@ -21,9 +21,7 @@ enum xas_vox_state { typedef struct _xas_vox { xas_object obj; - xas_audio_format format; - size_t buffer_size; float gain; -- cgit v1.2.3