diff options
author | XANTRONIX Development | 2022-02-02 13:51:34 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-02 13:51:34 -0500 |
commit | d008e5271eafe044233db6d158bf91c9efa39331 (patch) | |
tree | ca332f0ede4e59571e029f93fc778f9be981eec9 /examples | |
parent | c5c552efb3516b516a7ea703687e2a55573c9ffd (diff) | |
download | xas-d008e5271eafe044233db6d158bf91c9efa39331.tar.gz xas-d008e5271eafe044233db6d158bf91c9efa39331.tar.bz2 xas-d008e5271eafe044233db6d158bf91c9efa39331.zip |
Channel count first seems...nicer, somehow.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/say.c | 6 | ||||
-rw-r--r-- | examples/test.c | 6 |
2 files changed, 6 insertions, 6 deletions
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; } |