2 * $Logfile: /Freespace2/code/Sound/channel.h $
7 * Common types for the sound channels shared by the DirectSound modules
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 4 10/25/99 5:56p Jefff
15 * increase num software channels to the number the users hardware can
16 * handle. not less than 16, tho.
18 * 3 8/27/99 6:38p Alanl
19 * crush the blasted repeating messages bug
21 * 2 10/07/98 10:54a Dave
24 * 1 10/07/98 10:51a Dave
26 * 6 12/05/97 5:19p Lawrance
27 * re-do sound priorities to make more general and extensible
29 * 5 7/17/97 9:32a John
30 * made all directX header files name start with a v
32 * 4 7/15/97 11:15a Lawrance
33 * limit the max instances of simultaneous sound effects, implement
34 * priorities to force critical sounds
36 * 3 6/09/97 8:53a Lawrance
37 * add #ifndef ... #endif to avoid multiple inclusion
39 * 2 6/08/97 6:00p Lawrance
40 * created to share channel defs between ds.cpp and ds3d.cpp
52 typedef struct channel
54 int sig; // uniquely identifies the sound playing on the channel
55 int snd_id; // identifies which kind of sound is playing
56 LPDIRECTSOUNDBUFFER pdsb; // pointer to the secondary buffer that was duplicated
57 LPDIRECTSOUND3DBUFFER pds3db; // 3D interface, only used if sound buffer created with CTRL3D flag
58 int looping; // flag to indicate that the sound is looping
59 int vol; // in DirectSound units
60 int priority; // implementation dependant priority
66 // #define MAX_CHANNELS 16
67 extern channel* Channels; //[MAX_CHANNELS];
69 #endif /* __CHANNEL_H__ */