2 * $Logfile: /Freespace2/code/Sound/acm.h $
7 * Header file for interface to Audio Compression Manager functions
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/07/98 10:53a Dave
17 * 1 10/07/98 10:51a Dave
19 * 5 2/18/98 5:49p Lawrance
20 * Even if the ADPCM codec is unavailable, allow game to continue.
22 * 4 11/28/97 2:09p Lawrance
23 * Overhaul how ADPCM conversion works... use much less memory... safer
26 * 3 11/22/97 11:32p Lawrance
27 * decompress ADPCM data into 8 bit (not 16bit) for regular sounds (ie not
30 * 2 5/29/97 12:03p Lawrance
31 * creation of file to hold AudioCompressionManager specific code
36 #ifndef __FREESPACE_ACM_H__
37 #define __FREESPACE_ACM_H__
43 int ACM_convert_ADPCM_to_PCM(WAVEFORMATEX *pwfxSrc, ubyte *src, int src_len, ubyte **dest, int max_dest_bytes, int *dest_len, unsigned int *src_bytes_used, unsigned short dest_bps=16);
49 int ACM_stream_open(WAVEFORMATEX *pwfxSrc, WAVEFORMATEX *pwfxDest, void **stream, int dest_bps=16);
50 int ACM_stream_close(void *stream);
51 int ACM_query_source_size(void *stream, int dest_len);
52 int ACM_query_dest_size(void *stream, int src_len);
54 int ACM_convert(void *stream, ubyte *src, int src_len, ubyte *dest, int max_dest_bytes, unsigned int *dest_len, unsigned int *src_bytes_used);
57 #endif /* __ACM_H__ */