summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-01 11:50:37 -0500
committerXANTRONIX Development2022-02-01 11:50:37 -0500
commitcdb4eb396109e1659bfbb1c289279f41dd60f0b0 (patch)
treebfe696f58a33fc22bc5c79d2c526be90a1f83048 /examples
parent06c30104580ec9c589580c695f2cfbb6cc0b8575 (diff)
downloadxas-cdb4eb396109e1659bfbb1c289279f41dd60f0b0.tar.gz
xas-cdb4eb396109e1659bfbb1c289279f41dd60f0b0.tar.bz2
xas-cdb4eb396109e1659bfbb1c289279f41dd60f0b0.zip
Rename xas_riff_file_open() to _new()
Diffstat (limited to 'examples')
-rw-r--r--examples/test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/test.c b/examples/test.c
index 2579952..ec70a8e 100644
--- a/examples/test.c
+++ b/examples/test.c
@@ -81,12 +81,12 @@ int main(int argc, char **argv) {
usage(argc, argv, "No output file provided");
}
- if ((wave = xas_riff_file_open(argv[1],
- XAS_AUDIO_STREAM_PCM_16_BIT,
- sample_rate,
- XAS_AUDIO_STREAM_STEREO,
- O_WRONLY | O_CREAT | O_TRUNC)) == NULL) {
- goto error_riff_file_open;
+ if ((wave = xas_riff_file_new(argv[1],
+ XAS_AUDIO_STREAM_PCM_16_BIT,
+ sample_rate,
+ XAS_AUDIO_STREAM_STEREO,
+ O_WRONLY | O_CREAT | O_TRUNC)) == NULL) {
+ goto error_riff_file_new;
}
if ((synth_l = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
@@ -160,6 +160,6 @@ error_synth_new_r:
error_synth_new_l:
xas_audio_stream_destroy(wave);
-error_riff_file_open:
+error_riff_file_new:
return EX_OSERR;
}