From 924b1d976a618f521d149699accfd963bed5663c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 28 Nov 1999 18:04:29 +0000 Subject: [PATCH] ADPCM & special formats.. --- aplay/aplay.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index 35a0375..605c6e7 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -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':