audio_decoder.h 2.18 KB
Newer Older
1
/*****************************************************************************
Sam Hocevar's avatar
 
Sam Hocevar committed
2
 * audio_decoder.h : audio decoder thread interface
3
 *****************************************************************************
4
 * Copyright (C) 1999, 2000 VideoLAN
5
 * $Id: audio_decoder.h,v 1.3 2000/12/21 13:25:50 massiot Exp $
6 7
 *
 * Authors:
8
 * Michel Kaempf <maxx@via.ecp.fr>
9 10 11 12 13
 *
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
14
 * 
15 16
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
19
 *
20 21 22
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23 24
 *****************************************************************************/

Sam Hocevar's avatar
 
Sam Hocevar committed
25 26 27 28 29 30 31 32 33
/*****************************************************************************
 * adec_thread_t : audio decoder thread descriptor
 *****************************************************************************/
typedef struct adec_thread_s
{
    /*
     * Thread properties
     */
    vlc_thread_t        thread_id;                /* id for thread functions */
Michel Kaempf's avatar
Michel Kaempf committed
34 35 36 37

    /*
     * Input properties
     */
Sam Hocevar's avatar
 
Sam Hocevar committed
38 39 40
    decoder_fifo_t *    p_fifo;                /* stores the PES stream data */
    data_packet_t *     p_data;
    adec_config_t *     p_config;
Michel Lespinasse's avatar
 
Michel Lespinasse committed
41

Michel Kaempf's avatar
Michel Kaempf committed
42 43 44 45

    /*
     * Decoder properties
     */
Sam Hocevar's avatar
 
Sam Hocevar committed
46
    audiodec_t		audio_decoder;
Michel Kaempf's avatar
Michel Kaempf committed
47

Sam Hocevar's avatar
 
Sam Hocevar committed
48 49 50 51 52
    /*
     * Output properties
     */
    aout_fifo_t *       p_aout_fifo; /* stores the decompressed audio frames */
    aout_thread_t *     p_aout;           /* needed to create the audio fifo */
Michel Kaempf's avatar
Michel Kaempf committed
53

Sam Hocevar's avatar
 
Sam Hocevar committed
54 55 56 57 58 59
} adec_thread_t;

/*****************************************************************************
 * Prototypes
 *****************************************************************************/
vlc_thread_t adec_CreateThread       ( adec_config_t * p_config );