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