aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/tinyplay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/tinyplay.c b/utils/tinyplay.c
index cca8223..1c4e23f 100644
--- a/utils/tinyplay.c
+++ b/utils/tinyplay.c
@@ -146,6 +146,12 @@ int main(int argc, char **argv)
if (*argv) {
if (strcasecmp(*argv, "raw") == 0) {
is_raw = 1;
+ } else if (strcasecmp(*argv, "wav") == 0) {
+ is_raw = 0;
+ } else {
+ fprintf(stderr, "Error: file type '%s' not supported\n", *argv);
+ fclose(file);
+ return 1;
}
}
}