diff options
author | XANTRONIX Development | 2022-02-01 14:03:40 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-01 14:03:40 -0500 |
commit | f502d1a5193760c3e16f170af2e07f0a0ba94784 (patch) | |
tree | e00c7e4399ce88e530baf4397d201810a9a8fc68 /examples | |
parent | d512e7c6b2699cfe0c088b36fd8d8c390b2a234f (diff) | |
download | xas-f502d1a5193760c3e16f170af2e07f0a0ba94784.tar.gz xas-f502d1a5193760c3e16f170af2e07f0a0ba94784.tar.bz2 xas-f502d1a5193760c3e16f170af2e07f0a0ba94784.zip |
Rename src/riff.c methods for sake of consistency
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/test.c b/examples/test.c index ec70a8e..24d1d7b 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_new(argv[1], + if ((wave = xas_riff_new_file(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; + goto error_riff_new_file; } 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_new: +error_riff_new_file: return EX_OSERR; } |