summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-26 23:42:10 -0500
committerXANTRONIX Development2022-02-26 23:42:10 -0500
commit9e6c7b8c46df662a8777742ccb150c1bfff5d421 (patch)
tree71485d367b3fafd17266682fb7627391081e3a21
parent4d675ce17f3e61095e2ee9f7deac671dc5d40a95 (diff)
downloadxas-9e6c7b8c46df662a8777742ccb150c1bfff5d421.tar.gz
xas-9e6c7b8c46df662a8777742ccb150c1bfff5d421.tar.bz2
xas-9e6c7b8c46df662a8777742ccb150c1bfff5d421.zip
Change xas_vox_new() argument order
-rw-r--r--examples/say.c6
-rw-r--r--examples/spatial.c6
-rw-r--r--include/xas/vox.h6
-rw-r--r--src/vox.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/examples/say.c b/examples/say.c
index 8741a10..92856f2 100644
--- a/examples/say.c
+++ b/examples/say.c
@@ -97,9 +97,9 @@ int main(int argc, char **argv) {
usage(argc, argv, "No output file provided");
}
- if ((vox = xas_vox_new("/usr/bin/text2wave",
- format,
- buffer_size)) == NULL) {
+ if ((vox = xas_vox_new(format,
+ buffer_size,
+ "/usr/bin/text2wave")) == NULL) {
goto error_vox_new;
}
diff --git a/examples/spatial.c b/examples/spatial.c
index 9527cbe..b291fd2 100644
--- a/examples/spatial.c
+++ b/examples/spatial.c
@@ -110,9 +110,9 @@ int main(int argc, char **argv) {
goto error_synth_new;
}
- if ((vox = xas_vox_new("/usr/bin/text2wave",
- format,
- buffer_size)) == NULL) {
+ if ((vox = xas_vox_new(format,
+ buffer_size,
+ "/usr/bin/text2wave")) == NULL) {
goto error_vox_new;
}
diff --git a/include/xas/vox.h b/include/xas/vox.h
index 93777b0..e2d3e53 100644
--- a/include/xas/vox.h
+++ b/include/xas/vox.h
@@ -33,9 +33,9 @@ typedef struct _xas_vox {
FILE *in;
} xas_vox;
-xas_vox *xas_vox_new(const char *text2wave_path,
- xas_audio_format format,
- size_t buffer_size);
+xas_vox *xas_vox_new(xas_audio_format format,
+ size_t buffer_size,
+ const char *text2wave_path);
void xas_vox_destroy(xas_vox *vox);
diff --git a/src/vox.c b/src/vox.c
index caa3a26..e41fdd7 100644
--- a/src/vox.c
+++ b/src/vox.c
@@ -208,9 +208,9 @@ error_read:
return -1;
}
-xas_vox *xas_vox_new(const char *text2wave_path,
- xas_audio_format format,
- size_t buffer_size) {
+xas_vox *xas_vox_new(xas_audio_format format,
+ size_t buffer_size,
+ const char *text2wave_path) {
xas_vox *vox;
if ((vox = malloc(sizeof(*vox))) == NULL) {