From 25f6d0f91298593df40a5e669d97e4f78efef953 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 15 Apr 2001 09:50:17 +0000 Subject: [PATCH] Added AU format --- aplay/aplay.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index f577136..c6ddbac 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -140,7 +140,7 @@ Usage: %s [OPTION]... [FILE]... -L, --list-pcms list all PCMs defined -D, --device=NAME select PCM by name -q, --quiet quiet mode --t, --file-type TYPE file type (voc, wav or raw) +-t, --file-type TYPE file type (voc, wav, raw or au) -c, --channels=# channels -f, --format=FORMAT sample format (case insensitive) -r, --rate=# sample rate @@ -344,6 +344,8 @@ int main(int argc, char *argv[]) file_type = FORMAT_VOC; else if (strcasecmp(optarg, "wav") == 0) file_type = FORMAT_WAVE; + else if (strcasecmp(optarg, "au") == 0 || strcasecmp(optarg, "sparc") == 0) + file_type = FORMAT_AU; else { error("unrecognized file format %s", optarg); return 1;