diff options
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; } |