summaryrefslogtreecommitdiffstats
path: root/examples/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/open.c')
-rw-r--r--examples/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/open.c b/examples/open.c
index 45cd2e5..4bf036b 100644
--- a/examples/open.c
+++ b/examples/open.c
@@ -32,8 +32,8 @@ int main(int argc, char **argv) {
usage(argc, argv, "No input file provided");
}
- if ((wave = xas_riff_file_open(argv[1], O_RDONLY)) == NULL) {
- goto error_riff_file_open;
+ if ((wave = xas_riff_open_file(argv[1], O_RDONLY)) == NULL) {
+ goto error_riff_open_file;
}
printf("channels %zu sample rate %zu sample size %zu\n",
@@ -45,6 +45,6 @@ int main(int argc, char **argv) {
return EX_OK;
-error_riff_file_open:
+error_riff_open_file:
return EX_OSERR;
}