Update of /cvsroot/alsa/alsa-utils/aplay
In directory sc8-pr-cvs1:/tmp/cvs-serv25542
Modified Files:
aplay.c
Log Message:
Added -f cdr
Index: aplay.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/aplay/aplay.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -r1.165 -r1.166
--- aplay.c 27 Apr 2003 08:46:33 -0000 1.165
+++ aplay.c 4 Jun 2003 07:31:50 -0000 1.166
@@ -174,6 +174,7 @@
fprintf(stderr, "\nSome of these may not be available on selected hardware\n");
fprintf(stderr, "The availabled format shortcuts are:\n");
fprintf(stderr, "-f cd (16 bit little endian, 44100, stereo)\n");
+ fprintf(stderr, "-f cdr (16 bit big endian, 44100, stereo)\n");
fprintf(stderr, "-f dat (16 bit little endian, 48000, stereo)\n");
}
@@ -389,8 +390,11 @@
}
break;
case 'f':
- if (strcasecmp(optarg, "cd") == 0) {
- rhwparams.format = file_type == FORMAT_AU ?
SND_PCM_FORMAT_S16_BE : SND_PCM_FORMAT_S16_LE;
+ if (strcasecmp(optarg, "cd") == 0 || strcasecmp(optarg, "cdr")
== 0) {
+ if (strcasecmp(optarg, "cdr") == 0)
+ rhwparams.format = SND_PCM_FORMAT_S16_BE;
+ else
+ rhwparams.format = file_type == FORMAT_AU ?
SND_PCM_FORMAT_S16_BE : SND_PCM_FORMAT_S16_LE;
rhwparams.rate = 44100;
rhwparams.channels = 2;
} else if (strcasecmp(optarg, "dat") == 0) {
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog