Debian Codegraph @

src/audio/openal/castleinternalopenal_al.inc

raw
1 {%MainUnit castleinternalopenal.pas}
2
3 { translation of AL/al.h }
4
5 {**
6 * OpenAL cross platform audio library
7 * Copyright (C) 1999-2000 by authors.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 * Or go to http://www.gnu.org/copyleft/lgpl.html
23 *}
24
25 {$I castleinternalopenal_altypes.inc}
26
27 var
28
29 {*
30 * OpenAL Maintenance Functions
31 * State Management and Query.
32 * Error Handling.
33 * Extension Support.
34 }
35
36 { Renderer State management. } { }
37 alEnable : procedure( capability:TALenum ); cdecl;
38
39 alDisable : procedure( capability:TALenum ); cdecl;
40
41 alIsEnabled : function( capability:TALenum ):TALboolean; cdecl;
42
43 { State retrieval. }
44 alGetBooleanv : procedure( param:TALenum; data:PALboolean ); cdecl;
45
46 { State retrieval. }
47 alGetIntegerv : procedure( param:TALenum; data:PALint ); cdecl;
48
49 { State retrieval. }
50 alGetFloatv : procedure( param:TALenum; data:PALfloat ); cdecl;
51
52 { State retrieval. }
53 alGetDoublev : procedure( param:TALenum; data:PALdouble ); cdecl;
54
55 { State retrieval. }
56 alGetString : function( param:TALenum ):PAnsiChar; cdecl;
57
58 { State retrieval through return value ( for compatibility ). }
59 alGetBoolean : function( param:TALenum ):TALboolean; cdecl;
60 alGetInteger : function( param:TALenum ):TALint; cdecl;
61 alGetFloat : function( param:TALenum ):TALfloat; cdecl;
62 alGetDouble : function( param:TALenum ):TALdouble; cdecl;
63
64 {
65 Error support.
66 Obtain the most recent error generated in the AL state machine.
67 }
68 alGetError : function():TALenum; cdecl;
69
70 {
71 Extension support.
72 Obtain the address of a function (usually an extension)
73 with the name fname. All addresses are context-independent.
74 }
75 alIsExtensionPresent : function( fname:PAnsiChar ):TALboolean; cdecl;
76
77 {
78 Extension support.
79 Obtain the address of a function (usually an extension)
80 with the name fname. All addresses are context-independent.
81 }
82 alGetProcAddress : function( fname:PAnsiChar ):Pointer; cdecl;
83
84 {
85 Extension support.
86 Obtain the integer value of an enumeration (usually an extension) with the name ename.
87 }
88 alGetEnumValue : function( ename:PAnsiChar ):TALenum; cdecl;
89
90 {*
91 * LISTENER
92 * Listener is the sample position for a given context.
93 * The multi-channel (usually stereo) output stream generated
94 * by the mixer is parametrized by this Listener object:
95 * its position and velocity relative to Sources, within
96 * occluder and reflector geometry.
97 }
98
99 {
100 Listener Gain: default 1.0f.
101 }
102 alListenerf : procedure( pname:TALenum; param:TALfloat ); cdecl;
103
104 alListeneri : procedure( pname:TALenum; param:TALint ); cdecl;
105
106 {*
107 *
108 * Listener Position: ALfloat[3]
109 * Listener Velocity: ALfloat[3]
110 } { }
111 alListener3f : procedure( pname:TALenum; f1, f2, f3:TALfloat ); cdecl;
112
113 {*
114 *
115 * Listener Position: ALfloat[3]
116 * Listener Velocity: ALfloat[3]
117 * Listener Orientation: ALfloat[6] (forward and up vector).
118 } { }
119 alListenerfv : procedure( pname:TALenum; param:PALfloat ); cdecl;
120
121 {
122 Retrieve listener information.
123 }
124 alGetListeneri : procedure( pname:TALenum; value:PALint ); cdecl;
125 alGetListenerf : procedure( pname:TALenum; value:PALfloat ); cdecl;
126
127 {$ifdef OPENAL_DEPRECATED}
128 alGetListeneriv : procedure( pname:TALenum; value:PALint ); cdecl;
129 {$endif OPENAL_DEPRECATED}
130 alGetListenerfv : procedure( pname:TALenum; values:PALfloat ); cdecl;
131
132 alGetListener3f : procedure( pname:TALenum; f1, f2, f3:PALfloat ); cdecl;
133
134 {*
135 * SOURCE
136 * Source objects are by default localized. Sources
137 * take the PCM data provided in the specified Buffer,
138 * apply Source-specific modifications, and then
139 * submit them to be mixed according to spatial
140 * arrangement etc.
141 }
142
143 { Create Source objects. }
144 alGenSources : procedure( n:TALsizei; sources:PALuint ); cdecl;
145
146 { Delete Source objects. }
147 alDeleteSources : procedure( n:TALsizei; sources:PALuint ); cdecl;
148
149 { Verify a handle is a valid Source. }
150 alIsSource : function( sid:TALuint ):TALboolean; cdecl;
151
152 { Set an integer parameter for a Source object. }
153 alSourcei : procedure( sid:TALuint; param:TALenum; value:TALint ); cdecl;
154 { Note: possibly not present in older OpenAL < 1.1, particularly from Loki }
155 alSource3i : procedure( sid:TALuint; param:TALenum; f1, f2, f3:TALint ); cdecl;
156 alSourcef : procedure( sid:TALuint; param:TALenum; value:TALfloat ); cdecl;
157 alSource3f : procedure( sid:TALuint; param:TALenum; f1, f2, f3:TALfloat ); cdecl;
158 alSourcefv : procedure( sid:TALuint; param:TALenum; values:PALfloat ); cdecl;
159
160 { Get an integer parameter for a Source object. }
161 alGetSourcei : procedure( sid:TALuint; pname:TALenum; value:PALint ); cdecl;
162 {$ifdef OPENAL_DEPRECATED}
163 alGetSourceiv : procedure( sid:TALuint; pname:TALenum; values:PALint ); cdecl;
164 {$endif OPENAL_DEPRECATED}
165 alGetSourcef : procedure( sid:TALuint; pname:TALenum; value:PALfloat ); cdecl;
166 alGetSourcefv : procedure( sid:TALuint; pname:TALenum; values:PALfloat ); cdecl;
167
168 alSourcePlayv : procedure( ns:TALsizei; ids:PALuint ); cdecl;
169 alSourceStopv : procedure( ns:TALsizei; ids:PALuint ); cdecl;
170 alSourceRewindv : procedure( ns:TALsizei; ids:PALuint ); cdecl;
171 alSourcePausev : procedure( ns:TALsizei; ids:PALuint ); cdecl;
172
173 { Activate a source, start replay. }
174 alSourcePlay : procedure( sid:TALuint ); cdecl;
175
176 {
177 Pause a source,
178 temporarily remove it from the mixer list.
179 }
180 alSourcePause : procedure( sid:TALuint ); cdecl;
181
182 {
183 Rewind a source,
184 set the source to play at the beginning.
185 }
186 alSourceRewind : procedure( sid:TALuint ); cdecl;
187
188 {
189 Stop a source,
190 temporarily remove it from the mixer list,
191 and reset its internal state to pre-Play.
192 To remove a Source completely, it has to be
193 deleted following Stop, or before Play.
194 }
195 alSourceStop : procedure( sid:TALuint ); cdecl;
196
197 {*
198 * BUFFER
199 * Buffer objects are storage space for sample data.
200 * Buffers are referred to by Sources. There can be more than
201 * one Source using the same Buffer data. If Buffers have
202 * to be duplicated on a per-Source basis, the driver has to
203 * take care of allocation, copying, and deallocation as well
204 * as propagating buffer data changes.
205 }
206
207 { Buffer object generation. }
208 alGenBuffers : procedure( n:TALsizei; buffers:PALuint ); cdecl;
209
210 alDeleteBuffers : procedure( n:TALsizei; buffers:PALuint ); cdecl;
211 alIsBuffer : function( buffer:TALuint ):TALboolean; cdecl;
212
213 {
214 Specify the data to be filled into a buffer.
215 }
216 alBufferData : procedure( buffer:TALuint; format:TALenum; data:PALvoid; size, freq:TALsizei ); cdecl;
217
218 alGetBufferi : procedure( buffer:TALuint; param:TALenum; value:PALint ); cdecl;
219 alGetBufferf : procedure( buffer:TALuint; param:TALenum; value:PALfloat ); cdecl;
220 {$ifdef OPENAL_DEPRECATED}
221 alGetBufferiv : procedure( buffer:TALuint; param:TALenum; v:PALint); cdecl;
222 alGetBufferfv : procedure( buffer:TALuint; param:TALenum; v:PALfloat); cdecl;
223 {$endif OPENAL_DEPRECATED}
224
225 {*
226 * Frequency Domain Filters are band filters.
227 * Attenuation in Media (distance based)
228 * Reflection Material
229 * Occlusion Material (separating surface)
230 *
231 * Temporal Domain Filters:
232 * Early Reflections
233 * Late Reverb
234 *
235 }
236
237 {*
238 * EXTENSION: IASIG Level 2 Environment.
239 * Environment object generation.
240 * This is an EXTension that describes the Environment/Reverb
241 * properties according to IASIG Level 2 specifications.
242 }
243
244 {
245 Allocate n environment ids and store them in the array environs.
246 Returns the number of environments actually allocated.
247 }
248 alGenEnvironmentIASIG : function( n:TALsizei; environs:PALuint ):TALsizei; cdecl;
249 alDeleteEnvironmentIASIG : procedure( n:TALsizei; environs:PALuint ); cdecl;
250 alIsEnvironmentIASIG : function( environ:TALuint ):TALboolean; cdecl;
251 alEnvironmentiIASIG : procedure( eid:TALuint; param:TALenum; value:TALint ); cdecl;
252 { commented out by Kambi: is it not an error in OpenAL headers ?
253 value:TALuint ? Should not it be value:TALfloat.
254 As soon as I will know how to use this procedure I will test this.
255 alEnvironmentfIASIG : procedure( eid:TALuint; param:TALenum; value:TALuint ); cdecl;
256 }
257
258 {*
259 * Queue stuff
260 } { }
261 alSourceQueueBuffers : procedure( sid:TALuint; numEntries:TALsizei; bids:PALuint ); cdecl;
262 alSourceUnqueueBuffers : procedure( sid:TALuint; numEntries:TALsizei; bids:PALuint ); cdecl;
263
264 {*
265 * Knobs and dials
266 } { }
267 alDopplerFactor : procedure( value:TALfloat ); cdecl;
268 alDopplerVelocity : procedure( value:TALfloat ); cdecl;
269 alDistanceModel : procedure( distanceModel:TALenum ); cdecl;