summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/riff.c34
1 files changed, 17 insertions, 17 deletions
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;
}