* audio_output.h : audio output thread interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: audio_output.h,v 1.38 2001/07/12 20:31:33 reno Exp $
+ * $Id: audio_output.h,v 1.41 2002/01/14 12:15:10 asmax Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
+ * Cyril Deguet <asmax@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
} aout_bank_t;
+#ifndef PLUGIN
extern aout_bank_t *p_aout_bank;
+#else
+# define p_aout_bank (p_symbols->p_aout_bank)
+#endif
/*****************************************************************************
* aout_increment_t
( ((((fifo).l_end_frame + 1) - (fifo).l_start_frame) & AOUT_FIFO_SIZE) == 0 )
#define AOUT_EMPTY_FIFO 0
-#define AOUT_INTF_MONO_FIFO 1
-#define AOUT_INTF_STEREO_FIFO 2
-#define AOUT_ADEC_MONO_FIFO 3
-#define AOUT_ADEC_STEREO_FIFO 4
-#define AOUT_ADEC_SPDIF_FIFO 5
+#define AOUT_ADEC_MONO_FIFO 1
+#define AOUT_ADEC_STEREO_FIFO 2
+#define AOUT_ADEC_SPDIF_FIFO 3
/*****************************************************************************
* aout_thread_t : audio output thread descriptor
/*****************************************************************************
* Prototypes
*****************************************************************************/
+#ifndef PLUGIN
void aout_InitBank ( void );
void aout_EndBank ( void );
-aout_thread_t * aout_CreateThread ( int *pi_status );
+aout_thread_t * aout_CreateThread ( int *pi_status, int i_channels,
+ long l_rate );
void aout_DestroyThread ( aout_thread_t *, int * );
aout_fifo_t * aout_CreateFifo ( int, int, long, long, long, void * );
void aout_DestroyFifo ( aout_fifo_t *p_fifo );
void aout_FreeFifo ( aout_fifo_t *p_fifo );
+#else
+# define aout_CreateFifo p_symbols->aout_CreateFifo
+# define aout_DestroyFifo p_symbols->aout_DestroyFifo
+#endif