summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/say.c14
-rw-r--r--examples/test.c12
2 files changed, 13 insertions, 13 deletions
diff --git a/examples/say.c b/examples/say.c
index 389e338..23b31a2 100644
--- a/examples/say.c
+++ b/examples/say.c
@@ -87,7 +87,7 @@ int main(int argc, char **argv) {
}
if ((vox = xas_vox_new("/usr/bin/text2wave",
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
NULL)) == NULL) {
@@ -95,8 +95,8 @@ int main(int argc, char **argv) {
}
if ((output = xas_riff_new_file(argv[1],
- XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
O_WRONLY | O_CREAT | O_TRUNC)) == NULL) {
goto error_riff_new_file;
@@ -106,7 +106,7 @@ int main(int argc, char **argv) {
goto error_vox_stream_new;
}
- if ((synth_l = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_l = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -115,7 +115,7 @@ int main(int argc, char **argv) {
goto error_synth_new_l;
}
- if ((synth_r = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_r = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -124,8 +124,8 @@ int main(int argc, char **argv) {
goto error_synth_new_r;
}
- if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((mixer = xas_mixer_new(XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size)) == NULL) {
goto error_mixer_new;
diff --git a/examples/test.c b/examples/test.c
index 779434c..24e6ba1 100644
--- a/examples/test.c
+++ b/examples/test.c
@@ -83,14 +83,14 @@ int main(int argc, char **argv) {
}
if ((wave = xas_riff_new_file(argv[1],
- XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
O_WRONLY | O_CREAT | O_TRUNC)) == NULL) {
goto error_riff_new_file;
}
- if ((synth_l = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_l = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -99,7 +99,7 @@ int main(int argc, char **argv) {
goto error_synth_new_l;
}
- if ((synth_r = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_r = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -108,8 +108,8 @@ int main(int argc, char **argv) {
goto error_synth_new_r;
}
- if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((mixer = xas_mixer_new(XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size)) == NULL) {
goto error_mixer_new;