Debian Codegraph @

sndlib/auddev.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Source: $
21 * $Revision: 16 $
22 * $Author: Samir $
23 * $Date: 8/23/99 5:29p $
24 *
25 *
26 *
27 * $Log: /DescentIII/Main/dd_sndlib/auddev.h $
28 *
29 * 16 8/23/99 5:29p Samir
30 * incremental EAX 2.0 checkin
31 *
32 * 15 8/13/99 2:00p Samir
33 * more aureal and geometry fixes.
34 *
35 * 14 8/11/99 3:12p Samir
36 * fixes for aureal support.
37 *
38 * 13 5/03/99 3:12a Samir
39 * added event management routines.
40 *
41 * 12 4/29/99 3:01p Samir
42 * added some more functions.
43 *
44 * 11 4/23/99 7:51p Samir
45 * added flush function.
46 *
47 * 10 4/13/99 4:09p Samir
48 * more priority stuff.
49 *
50 * 9 4/06/99 8:30p Samir
51 * added reflection support.
52 *
53 * 8 3/29/99 11:02a Samir
54 * added geometry supoprt.
55 *
56 * 7 1/14/99 6:10p Samir
57 * added DirectSound buffer duplication code.
58 *
59 * 6 1/11/99 5:52p Samir
60 * updated EAX support.
61 *
62 * 5 1/08/99 6:31p Samir
63 * added reverb
64 *
65 * 4 1/08/99 11:36a Samir
66 * implemented basic Aureal 2.0 support.
67 *
68 * 3 12/23/98 11:50a Samir
69 *
70 * 2 12/23/98 11:48a Samir
71 * basic functionality.
72 *
73 * 1 12/22/98 11:56a Samir
74 *
75 */
76
77 #ifndef AUDDEV_H
78 #define AUDDEV_H
79
80 #include <windows.h>
81 #include <mmsystem.h>
82 #include "dsound.h"
83 #include "vmanpset.h"
84 #include "pstypes.h"
85 #include "vecmat.h"
86
87 #define SOUND_DECAY_MAXTIME 100.0f
88 #define SOUND_GAIN_MAXSCALAR 1.0f
89
90 // Creative labs Environmental Audio Extension Interface
91
92 // starts up standard audio device (DirectSound)
93 bool EAX_Create(GUID *pguid, LPDIRECTSOUND *lpds);
94
95 // shutdown standard audio device (DirectSound)
96 void EAX_Destroy();
97
98 // returns EAX caps
99 #define EAXF_SOURCE_OBSTRUCTION 16
100 int EAX_Caps();
101
102 // initializes EAX specific interfaces.
103 bool EAX_SetPrimaryBuffer();
104
105 // sets up current global environment reverb
106 bool EAX_SetEnvironmentalReverb(float volume, float damping, float decay);
107
108 // intializes a sound source for EAX
109 bool EAX_InitSource(LPDIRECTSOUND3DBUFFER lpBuffer3D, LPKSPROPERTYSET *plpksp);
110
111 // frees an eax sound source
112 void EAX_FreeSource(LPKSPROPERTYSET lpksp);
113
114 // sets source properties
115 void EAX_SetSourceProperties(LPKSPROPERTYSET lpksp, float obstruction);
116
117 #endif