From cdb4eb396109e1659bfbb1c289279f41dd60f0b0 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 1 Feb 2022 11:50:37 -0500 Subject: Rename xas_riff_file_open() to _new() --- src/riff.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/riff.c b/src/riff.c index 40aae18..fc4e4c3 100644 --- a/src/riff.c +++ b/src/riff.c @@ -66,11 +66,11 @@ error_io: return -1; } -static xas_riff *file_open(const char *path, - size_t sample_size, - size_t sample_rate, - size_t channels, - int flags) { +static xas_riff *file_new(const char *path, + size_t sample_size, + size_t sample_rate, + size_t channels, + int flags) { xas_riff *riff; if ((riff = malloc(sizeof(*riff))) == NULL) { @@ -165,20 +165,20 @@ error_read: return -1; } -xas_audio_stream *xas_riff_file_open(const char *path, - size_t sample_size, - size_t sample_rate, - size_t channels, - int flags) { +xas_audio_stream *xas_riff_file_new(const char *path, + size_t sample_size, + size_t sample_rate, + size_t channels, + int flags) { xas_audio_stream *stream; xas_riff *riff; - if ((riff = file_open(path, - sample_size, - sample_rate, - channels, - flags)) == NULL) { - goto error_file_open; + if ((riff = file_new(path, + sample_size, + sample_rate, + channels, + flags)) == NULL) { + goto error_file_new; } if (flags & (O_RDWR | O_WRONLY)) { @@ -208,6 +208,6 @@ xas_audio_stream *xas_riff_file_open(const char *path, error_audio_stream_new_sink: file_close(riff, NULL); -error_file_open: +error_file_new: return NULL; } -- cgit v1.2.3