summaryrefslogtreecommitdiffstats
path: root/src/vox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vox.c')
-rw-r--r--src/vox.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/vox.c b/src/vox.c
index e41fdd7..bf2968b 100644
--- a/src/vox.c
+++ b/src/vox.c
@@ -208,9 +208,11 @@ error_read:
return -1;
}
-xas_vox *xas_vox_new(xas_audio_format format,
- size_t buffer_size,
- const char *text2wave_path) {
+xas_vox *xas_vox_new_args(xas_audio_format format,
+ size_t buffer_size,
+ const char *text2wave_path,
+ int argn,
+ char **args) {
xas_vox *vox;
if ((vox = malloc(sizeof(*vox))) == NULL) {
@@ -230,8 +232,8 @@ xas_vox *xas_vox_new(xas_audio_format format,
vox->stdout = -1;
vox->in = NULL;
- vox->argn = 0;
- vox->args = NULL;
+ vox->argn = argn;
+ vox->args = args;
memset(vox->tmpfile, '\0', sizeof(vox->tmpfile));