summaryrefslogtreecommitdiffstats
path: root/examples/say.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/say.c')
-rw-r--r--examples/say.c14
1 files changed, 7 insertions, 7 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;