Commit 4309a1f7 authored by Christophe Massiot's avatar Christophe Massiot

Fixed AFMT_AC3 and AFMT_S16_NE handling.

parent 6d6fa7fe
......@@ -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',' ')) \
......
......@@ -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>
......@@ -53,6 +53,20 @@
# 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
*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment