]> icculus.org git repositories - taylor/freespace2.git/blob - include/acm.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / acm.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Sound/acm.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Header file for interface to Audio Compression Manager functions
16  *
17  * $Log$
18  * Revision 1.3  2002/06/09 04:41:12  relnev
19  * added copyright header
20  *
21  * Revision 1.2  2002/05/27 01:06:01  theoddone33
22  * sound.cpp works
23  *
24  * Revision 1.1.1.1  2002/05/03 03:28:12  root
25  * Initial import.
26  *
27  * 
28  * 2     10/07/98 10:53a Dave
29  * Initial checkin.
30  * 
31  * 1     10/07/98 10:51a Dave
32  * 
33  * 5     2/18/98 5:49p Lawrance
34  * Even if the ADPCM codec is unavailable, allow game to continue.
35  * 
36  * 4     11/28/97 2:09p Lawrance
37  * Overhaul how ADPCM conversion works... use much less memory... safer
38  * too.
39  * 
40  * 3     11/22/97 11:32p Lawrance
41  * decompress ADPCM data into 8 bit (not 16bit) for regular sounds (ie not
42  * music)
43  * 
44  * 2     5/29/97 12:03p Lawrance
45  * creation of file to hold AudioCompressionManager specific code
46  *
47  * $NoKeywords: $
48  */
49
50 #ifndef __FREESPACE_ACM_H__
51 #define __FREESPACE_ACM_H__
52
53 #include "pstypes.h"
54 #include "oal.h"
55
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);
57
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);
62
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);
64
65 #endif /* __ACM_H__ */
66