added proper guessing for natural endiannes of 16 bit recording

This commit is contained in:
darkeye 2003-02-12 15:48:22 +00:00
parent d365bb2277
commit fab50f07b0
3 changed files with 17 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Darkice next release
Steven G. Johnson <stevenj@alum.mit.edu> and
Alejandro Forero Cuervo <bachue@bachue.com>
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

View File

@ -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)

View File

@ -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)