// **************************************************************************
// **************************************************************************
// **************************************************************************
// **                                                                      **
// ** ADPCM.H                                                      PROGRAM **
// **                                                                      **
// ** Decompression code for IMA/DVI ADPCM.                                **
// **                                                                      **
// ** Last modified : 22 Jul 1997 by John Brandwood                        **
// **                                                                      **
// **************************************************************************
// **************************************************************************
// **************************************************************************

#ifndef __ADPCMIMA_h
#define __ADPCMIMA_h

#ifndef __LFPTYPES_h
 #include "lfptypes.h"
#endif

//
// GLOBAL DATA STRUCTURES AND DEFINITIONS
//

typedef	struct ADPCM_STATE_S
	{
	SW                  value;		// Previous output value.
	SB                  index;		// Index into stepsize table.
	SB                  padding;
	} ADPCM_STATE_T;

//
// GLOBAL VARIABLES
//

//
// GLOBAL FUNCTION PROTOTYPES
//

extern	void                DecompressAdpcmIma      (
								UB *                psrc,
								SW *                pdst,
								int                 len);

extern	void                DecompressAdpcmJcb      (
								UB *                psrc,
								SW *                pdst,
								int                 len,
								ADPCM_STATE_T *     state);

//
// End of __ADPCMIMA_h
//

#endif



// **************************************************************************
// **************************************************************************
// **************************************************************************
//	END OF ADPCM.H
// **************************************************************************
// **************************************************************************
// **************************************************************************

