* audio_output.h : audio output thread interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: audio_output.h,v 1.34 2001/05/06 04:32:02 sam Exp $
+ * $Id: audio_output.h,v 1.37 2001/05/30 17:03:11 sam Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
*
*****************************************************************************
* This global variable is accessed by any function using the audio output.
*****************************************************************************/
-typedef struct
+typedef struct aout_bank_s
{
/* Array to all the audio outputs */
struct aout_thread_s *pp_aout[ AOUT_MAX_THREADS ];
#define AOUT_FMT_U16_BE 0x00000100 /* Big endian U16 */
#define AOUT_FMT_AC3 0x00000400 /* Dolby Digital AC3 */
-
#ifdef WORDS_BIGENDIAN
#define AOUT_FMT_S16_NE AOUT_FMT_S16_BE
#else
#define AOUT_FMT_S16_NE AOUT_FMT_S16_LE
#endif
+/* Number of samples in an AC3 frame */
+#define AC3_FRAME_SIZE 1536
+
+/* Size of a frame for spdif output */
+#define SPDIF_FRAME_SIZE 6144
+
/*****************************************************************************
* Prototypes
*****************************************************************************/