diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/riff.c | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -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; } |