• Sam Hocevar's avatar
    · 4f551c2b
    Sam Hocevar authored
      * Header cleaning: filled all empty authors fields, added CVS $Id stuff.
      * Fixes to aout_darwin.c by Colin Delacroix <colin@zoy.org>.
      * Fixes to configure.in, Makefile.in and main.c (Altivec detection)
        by Eugenio Jarosiewicz <ej0@cise.ufl.edu>.
      * Added Colin and Eugenio to the AUTHORS file.
    4f551c2b
lpcm_decoder.c 2 KB
/*****************************************************************************
 * lpcm_decoder.c: core lpcm decoder
 *****************************************************************************
 * Copyright (C) 1999, 2000 VideoLAN
 * $Id: lpcm_decoder.c,v 1.6 2001/03/21 13:42:34 sam Exp $
 *
 * Authors: Samuel Hocevar <sam@zoy.org>
 *
 * 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.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * 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.
 *****************************************************************************/
#include <stdio.h>
#include "defs.h"

#include "config.h"
#include "common.h"
#include "threads.h"
#include "mtime.h"

#include "intf_msg.h"

//#include "int_types.h"
#include "lpcm_decoder.h"

int lpcm_init (lpcmdec_t * p_lpcmdec)
{
    intf_DbgMsg( "LPCM Debug: lpmcm init called" );
    return 0;
}

int lpcm_decode_frame (lpcmdec_t * p_lpcmdec, s16 * buffer)
{
/*
 * XXX was part of ac3dec, is to change
    
    int i;

    if (parse_bsi (p_ac3dec))
        return 1;

    for (i = 0; i < 6; i++) {
        if (parse_audblk (p_ac3dec, i))
            return 1;
        if (exponent_unpack (p_ac3dec))
            return 1;
        bit_allocate (p_ac3dec);
        mantissa_unpack (p_ac3dec);
        if  (p_ac3dec->bsi.acmod == 0x2)
            rematrix (p_ac3dec);
        imdct (p_ac3dec);
        downmix (p_ac3dec, buffer);

        buffer += 2*256;
    }

    parse_auxdata (p_ac3dec);
*/
    
    return 0;
}