summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-01 11:50:37 -0500
committerXANTRONIX Development2022-02-01 11:50:37 -0500
commitcdb4eb396109e1659bfbb1c289279f41dd60f0b0 (patch)
treebfe696f58a33fc22bc5c79d2c526be90a1f83048 /src
parent06c30104580ec9c589580c695f2cfbb6cc0b8575 (diff)
downloadxas-cdb4eb396109e1659bfbb1c289279f41dd60f0b0.tar.gz
xas-cdb4eb396109e1659bfbb1c289279f41dd60f0b0.tar.bz2
xas-cdb4eb396109e1659bfbb1c289279f41dd60f0b0.zip
Rename xas_riff_file_open() to _new()
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;
}