"MPEG",
"GSM"
};
+ if (format == SND_PCM_SFMT_SPECIAL)
+ return "Special";
if (format < 0 || format > SND_PCM_SFMT_GSM)
return "Unknown";
return formats[format];
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':