diff --git a/darkice/trunk/ChangeLog b/darkice/trunk/ChangeLog index cba54ae..31f976e 100644 --- a/darkice/trunk/ChangeLog +++ b/darkice/trunk/ChangeLog @@ -4,6 +4,7 @@ Darkice next release Steven G. Johnson and Alejandro Forero Cuervo see http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.html + o added proper detection of netural endiannes for 16 bit recording 09-02-2003: DarkIce 0.13 released diff --git a/darkice/trunk/configure.in b/darkice/trunk/configure.in index ac8dd3a..57498e6 100644 --- a/darkice/trunk/configure.in +++ b/darkice/trunk/configure.in @@ -17,7 +17,7 @@ AC_HEADER_SYS_WAIT() AC_TYPE_PID_T() AC_TYPE_SIZE_T() - +AC_C_BIGENDIAN() AC_CHECK_LIB( socket, socket) AC_CHECK_LIB( nsl, gethostbyname) diff --git a/darkice/trunk/src/OssDspSource.cpp b/darkice/trunk/src/OssDspSource.cpp index 23f3a80..f39a41e 100644 --- a/darkice/trunk/src/OssDspSource.cpp +++ b/darkice/trunk/src/OssDspSource.cpp @@ -102,6 +102,18 @@ *----------------------------------------------------------------------------*/ static const char fileid[] = "$Id$"; +/*------------------------------------------------------------------------------ + * Define the natural endiannes of 16 bit recording if not defined, + * based on the endiannes of the system + *----------------------------------------------------------------------------*/ +#ifndef AFMT_S16_NE +# ifdef WORDS_BIGENDIAN +# define AFMT_S16_NE AFMT_S16_BE +# else +# define AFMT_S16_NE AFMT_S16_LE +# endif +#endif + /* =============================================== local function prototypes */ @@ -295,6 +307,9 @@ OssDspSource :: close ( void ) throw ( Exception ) $Source$ $Log$ + Revision 1.13 2003/02/12 15:48:22 darkeye + added proper guessing for natural endiannes of 16 bit recording + Revision 1.12 2002/12/20 10:40:40 darkeye added support for big endian OSS devices (like Linux PowerPC)