]> git.sesse.net Git - vlc/blobdiff - src/audio_decoder/audio_decoder.h
* Mandatory step for video output IV and the audio output quality
[vlc] / src / audio_decoder / audio_decoder.h
index 3c34ef7464ff3f77e5914970114e4ad1f1361137..07e93bb302d4557346267eb1c8ee18577d46e06d 100644 (file)
@@ -2,10 +2,9 @@
  * audio_decoder.h : audio decoder thread interface
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: audio_decoder.h,v 1.3 2000/12/21 13:25:50 massiot Exp $
+ * $Id: audio_decoder.h,v 1.7 2001/05/01 04:18:18 sam Exp $
  *
- * Authors:
- * Michel Kaempf <maxx@via.ecp.fr>
+ * Authors: Michel Kaempf <maxx@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
@@ -36,24 +35,32 @@ typedef struct adec_thread_s
      * Input properties
      */
     decoder_fifo_t *    p_fifo;                /* stores the PES stream data */
-    data_packet_t *     p_data;
+    /* The bit stream structure handles the PES stream at the bit level */
+    bit_stream_t        bit_stream;
+    int                 i_read_bits;
     adec_config_t *     p_config;
 
-
     /*
      * Decoder properties
      */
-    audiodec_t         audio_decoder;
+    u32                 header;
+    int                 frame_size;
+    adec_bank_t         bank_0;
+    adec_bank_t         bank_1;
 
     /*
      * Output properties
      */
-    aout_fifo_t *       p_aout_fifo; /* stores the decompressed audio frames */
-    aout_thread_t *     p_aout;           /* needed to create the audio fifo */
+    struct aout_fifo_s *    p_aout_fifo;   /* stores the decompressed frames */
 
 } adec_thread_t;
 
 /*****************************************************************************
  * Prototypes
  *****************************************************************************/
-vlc_thread_t adec_CreateThread       ( adec_config_t * p_config );
+vlc_thread_t adec_CreateThread   ( adec_config_t * p_config );
+int          adec_Init           ( adec_thread_t * p_adec );
+int          adec_SyncFrame      ( adec_thread_t * p_adec,
+                                   adec_sync_info_t * p_sync_info );
+int          adec_DecodeFrame    ( adec_thread_t * p_adec, s16 * buffer );
+