Ghee Teo <Ghee.Teo at sun.com> wrote:

> If this patch is sparc only, apply that patch only when it is building 
> for sparc, that can be easily handled in spec file, use
> %ifarch sparc
>
> Then the changes would not affect x86. Sinc eyou have not include the 
> spec file changes in the review. So Joerg is correct in his query.

In case that other OS also don't hide CPU endianess from /dev/audio, here is a
patch for cdda2wav:


------- cdda2wav.c -------
--- /tmp/sccs.teaO31    Fr Mrz 13 13:36:48 2009
+++ cdda2wav.c  Fr Mrz 13 13:14:23 2009
@@ -78,6 +78,7 @@
 #endif
 #include <schily/varargs.h>
 #include <schily/maxpath.h>
+#include <schily/btorder.h>
 
 #include <scg/scsitransp.h>
 
@@ -2693,6 +2694,12 @@
                        global.outputendianess = LITTLE;
                } else if (strcasecmp(oendianess, "big") == 0) {
                        global.outputendianess = BIG;
+               } else if (strcasecmp(oendianess, "machine") == 0) {
+#ifdef WORDS_BIGENDIAN
+                       global.outputendianess = BIG;
+#else
+                       global.outputendianess = LITTLE;
+#endif
                } else {
                        usage2("Wrong parameter '%s' for option -E", 
oendianess);
                }


J?rg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to