• Christian Schmidt's avatar
    pcm_dvd: consolidate pieces from pcm.c and mpeg.c · a42e3a67
    Christian Schmidt authored
    
    
    Remove the header decoding for PCM audio from mpeg.c and the
    20/24bit parts from pcm.c and merge them into a new decoder in
    pcm-dvd.c.
    
    The decoder has added support for samples that span multiple
    packets and modified 20/24bit group decoding. Both is needed to
    decode samples that have been generated with DVD-Lab Pro 2. The
    decoding of 16bit PCM and two channel 24bit is identical to
    before. No other samples are known to verify the correctness of
    the encoding this software does.
    The complete list of tested formats is
    48kHz/16bit/2-8 channels
    48kHz/24bit/2-5 channels
    96kHz/16bit/2-4 channels
    96kHz/24bit/2 channels
    
    Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
    a42e3a67