2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/Sound/acm.h $
15 * Header file for interface to Audio Compression Manager functions
18 * Revision 1.3 2002/06/09 04:41:12 relnev
19 * added copyright header
21 * Revision 1.2 2002/05/27 01:06:01 theoddone33
24 * Revision 1.1.1.1 2002/05/03 03:28:12 root
28 * 2 10/07/98 10:53a Dave
31 * 1 10/07/98 10:51a Dave
33 * 5 2/18/98 5:49p Lawrance
34 * Even if the ADPCM codec is unavailable, allow game to continue.
36 * 4 11/28/97 2:09p Lawrance
37 * Overhaul how ADPCM conversion works... use much less memory... safer
40 * 3 11/22/97 11:32p Lawrance
41 * decompress ADPCM data into 8 bit (not 16bit) for regular sounds (ie not
44 * 2 5/29/97 12:03p Lawrance
45 * creation of file to hold AudioCompressionManager specific code
50 #ifndef __FREESPACE_ACM_H__
51 #define __FREESPACE_ACM_H__
56 int ACM_convert_ADPCM_to_PCM(WAVE_chunk *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);
58 int ACM_stream_open(WAVE_chunk *pwfxSrc, WAVE_chunk *pwfxDest, void **stream, int dest_bps=16);
59 int ACM_stream_close(void *stream);
60 int ACM_query_source_size(void *stream, int dest_len);
61 int ACM_query_dest_size(void *stream, int src_len);
63 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);
65 #endif /* __ACM_H__ */