[Liboss-commit] CVS: liboss/include soundcard.h,1.8,1.9
Brought to you by:
thesin
|
From: Justin <th...@us...> - 2002-11-05 19:46:57
|
Update of /cvsroot/liboss/liboss/include
In directory usw-pr-cvs1:/tmp/cvs-serv25301
Modified Files:
soundcard.h
Log Message:
some additions and some little fixes
Index: soundcard.h
===================================================================
RCS file: /cvsroot/liboss/liboss/include/soundcard.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- soundcard.h 5 Nov 2002 16:43:12 -0000 1.8
+++ soundcard.h 5 Nov 2002 19:46:52 -0000 1.9
@@ -106,6 +106,18 @@
#define AFMT_S16_NE AFMT_S16_BE
#endif
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+#define AFMT_U16_NE AFMT_U16_LE
+#else
+#define AFMT_U16_NE AFMT_U16_BE
+#endif
+
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+#define OSS_LITTLE_ENDIAN
+#else
+#define OSS_BIG_ENDIAN
+#endif
+
/* Aliases */
#define SOUND_PCM_WRITE_BITS SNDCTL_DSP_SETFMT
#define SOUND_PCM_WRITE_RATE SNDCTL_DSP_SPEED
@@ -312,7 +324,7 @@
return oss_open(x,y,l);
}
-static inline void close (int x) {oss_close(x);}
+static inline int close (int x) {oss_close(x);}
#else
extern int oss_ioctl (int,unsigned long,va_list);
extern int oss_open (const char *,int,va_list);
|