* audio_output.h : audio output interface
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: audio_output.h,v 1.76 2003/02/02 00:57:20 jobi Exp $
+ * $Id: audio_output.h,v 1.77 2003/02/06 15:14:41 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
# define AOUT_FMT_U16_NE VLC_FOURCC('u','1','6','l')
#endif
-#define AFMT_S16_NE AOUT_FMT_S16_NE
-#define AFMT_U16_NE AOUT_FMT_U16_NE
-
#define AOUT_FMT_NON_LINEAR( p_format ) \
( ((p_format)->i_format == VLC_FOURCC('s','p','d','i')) \
|| ((p_format)->i_format == VLC_FOURCC('a','5','2',' ')) \
* oss.c : OSS /dev/dsp module for vlc
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
- * $Id: oss.c,v 1.49 2003/02/02 00:57:21 jobi Exp $
+ * $Id: oss.c,v 1.50 2003/02/06 15:14:41 massiot Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
# include <machine/soundcard.h>
#endif
+/* Patches for ignorant OSS versions */
+#ifndef AFMT_AC3
+# define AFMT_AC3 0x00000400 /* Dolby Digital AC3 */
+#endif
+
+#ifndef AFMT_S16_NE
+# ifdef WORDS_BIGENDIAN
+# define AFMT_S16_NE AFMT_S16_BE
+# else
+# define AFMT_S16_NE AFMT_S16_LE
+# endif
+#endif
+
+
/*****************************************************************************
* aout_sys_t: OSS audio output method descriptor
*****************************************************************************