From 2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 3 Feb 2022 11:58:26 -0500 Subject: Shorten he name of XAS_AUDIO_ constants --- examples/say.c | 14 +++++++------- examples/test.c | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'examples') 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; -- cgit v1.2.3