]> git.sesse.net Git - vlc/commitdiff
Fixed AFMT_AC3 and AFMT_S16_NE handling.
authorChristophe Massiot <massiot@videolan.org>
Thu, 6 Feb 2003 15:14:41 +0000 (15:14 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 6 Feb 2003 15:14:41 +0000 (15:14 +0000)
include/audio_output.h
modules/audio_output/oss.c

index 5e20a08660f4f6f5c6aaf8042171814ea483bfba..dd04ea57b24917504b2b03283f0bdb7a47548517 100644 (file)
@@ -2,7 +2,7 @@
  * 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>
  *
@@ -68,9 +68,6 @@ struct audio_sample_format_t
 #   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',' '))            \
index 6d47adb147e21f3112cbd935f69161c8c8666521..1fff18229f551ff5ddf11ffc130c3293ff542564 100644 (file)
@@ -2,7 +2,7 @@
  * 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
  *****************************************************************************