From d008e5271eafe044233db6d158bf91c9efa39331 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 2 Feb 2022 13:51:34 -0500 Subject: Channel count first seems...nicer, somehow. --- examples/say.c | 6 +++--- examples/test.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/say.c b/examples/say.c index d72c7ff..389e338 100644 --- a/examples/say.c +++ b/examples/say.c @@ -95,9 +95,9 @@ int main(int argc, char **argv) { } if ((output = xas_riff_new_file(argv[1], + XAS_AUDIO_STREAM_STEREO, XAS_AUDIO_STREAM_PCM_16_BIT, sample_rate, - XAS_AUDIO_STREAM_STEREO, O_WRONLY | O_CREAT | O_TRUNC)) == NULL) { goto error_riff_new_file; } @@ -124,9 +124,9 @@ int main(int argc, char **argv) { goto error_synth_new_r; } - if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_PCM_16_BIT, + if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_STEREO, + XAS_AUDIO_STREAM_PCM_16_BIT, sample_rate, - XAS_AUDIO_STREAM_STEREO, buffer_size)) == NULL) { goto error_mixer_new; } diff --git a/examples/test.c b/examples/test.c index 56632a5..779434c 100644 --- a/examples/test.c +++ b/examples/test.c @@ -83,9 +83,9 @@ int main(int argc, char **argv) { } if ((wave = xas_riff_new_file(argv[1], + XAS_AUDIO_STREAM_STEREO, XAS_AUDIO_STREAM_PCM_16_BIT, sample_rate, - XAS_AUDIO_STREAM_STEREO, O_WRONLY | O_CREAT | O_TRUNC)) == NULL) { goto error_riff_new_file; } @@ -108,9 +108,9 @@ int main(int argc, char **argv) { goto error_synth_new_r; } - if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_PCM_16_BIT, + if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_STEREO, + XAS_AUDIO_STREAM_PCM_16_BIT, sample_rate, - XAS_AUDIO_STREAM_STEREO, buffer_size)) == NULL) { goto error_mixer_new; } -- cgit v1.2.3