]> git.alsa-project.org Git - alsa-utils.git/commitdiff
ADPCM & special formats..
authorJaroslav Kysela <perex@perex.cz>
Sun, 28 Nov 1999 18:04:29 +0000 (18:04 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 28 Nov 1999 18:04:29 +0000 (18:04 +0000)
aplay/aplay.c

index 35a03754b8615112ac656d4bd34f9f15899d143e..605c6e76c672834a137808fb4ce9d955746a0c6a 100644 (file)
@@ -137,6 +137,8 @@ static char *get_format(int format)
                "MPEG",
                "GSM"
        };
+       if (format == SND_PCM_SFMT_SPECIAL)
+               return "Special";
        if (format < 0 || format > SND_PCM_SFMT_GSM)
                return "Unknown";
        return formats[format];
@@ -379,12 +381,16 @@ int main(int argc, char *argv[])
                                rformat.format = SND_PCM_SFMT_MU_LAW;
                                active_format = FORMAT_RAW;
                                break;
-                       }
-                       if (!strcmp(optarg, "adpcm")) {
+                       } else if (!strcmp(optarg, "adpcm")) {
                                rformat.format = SND_PCM_SFMT_IMA_ADPCM;
                                active_format = FORMAT_RAW;
                                break;
                        }
+                       if (!strcmp(optarg, "special")) {
+                               rformat.format = SND_PCM_SFMT_SPECIAL;
+                               active_format = FORMAT_RAW;
+                               break;
+                       }
                        fprintf(stderr, "Error: wrong extended format '%s'\n", optarg);
                        return 1;
                case 'm':