]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Added AU format
authorJaroslav Kysela <perex@perex.cz>
Sun, 15 Apr 2001 09:50:17 +0000 (09:50 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 15 Apr 2001 09:50:17 +0000 (09:50 +0000)
aplay/aplay.c

index f57713687b8aab93000d474d3b9288c926bc2dd0..c6ddbac427e5737deac4619dd8a261498e27b6e7 100644 (file)
@@ -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;