1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */
28 module derelict.openal.statfun;
29 
30 version(Derelict_Static) version = DerelictAL_Static;
31 version(DerelictAL_Static):
32 
33 public import derelict.openal.types;
34 
35 extern(C) @nogc nothrow {
36     void alEnable(ALenum);
37     void alDisable(ALenum);
38     ALboolean alIsEnabled(ALenum);
39     const(ALchar)* alGetString(ALenum);
40     void alGetBooleanv(ALenum, ALboolean*);
41     void alGetIntegerv(ALenum, ALint*);
42     void alGetFloatv(ALenum, ALfloat*);
43     void alGetDoublev(ALenum, ALdouble*);
44     ALboolean alGetBoolean(ALenum);
45     ALint alGetInteger(ALenum);
46     ALfloat alGetFloat(ALenum);
47     ALdouble alGetDouble(ALenum);
48     ALenum alGetError();
49     ALboolean alIsExtensionPresent(const(char)*);
50     ALvoid* alGetProcAddress(const(char)*);
51     ALenum alGetEnumValue(const(char)*);
52     void alListenerf(ALenum, ALfloat);
53     void alListener3f(ALenum, ALfloat, ALfloat, ALfloat);
54     void alListenerfv(ALenum, const(ALfloat)*);
55     void alListeneri(ALenum, ALint);
56     void alListener3i(ALenum, ALint, ALint, ALint);
57     void alListeneriv(ALenum, const(ALint)*);
58     void alGetListenerf(ALenum, ALfloat*);
59     void alGetListener3f(ALenum, ALfloat*, ALfloat*, ALfloat*);
60     void alGetListenerfv(ALenum, ALfloat*);
61     void alGetListeneri(ALenum, ALint*);
62     void alGetListener3i(ALenum, ALint*, ALint*, ALint*);
63     void alGetListeneriv(ALenum, ALint*);
64     void alGenSources(ALsizei, ALuint*);
65     void alDeleteSources(ALsizei, const(ALuint)*);
66     ALboolean alIsSource(ALuint);
67     void alSourcef(ALuint, ALenum, ALfloat);
68     void alSource3f(ALuint, ALenum, ALfloat, ALfloat, ALfloat);
69     void alSourcefv(ALuint, ALenum, const(ALfloat)*);
70     void alSourcei(ALuint, ALenum, ALint);
71     void alSource3i(ALuint, ALenum, ALint, ALint, ALint);
72     void alSourceiv(ALuint, ALenum, const(ALint)*);
73     void alGetSourcef(ALuint, ALenum, ALfloat*);
74     void alGetSource3f(ALuint, ALenum, ALfloat*, ALfloat*, ALfloat*);
75     void alGetSourcefv(ALuint, ALenum, ALfloat*);
76     void alGetSourcei(ALuint, ALenum, ALint*);
77     void alGetSource3i(ALuint, ALenum, ALint*, ALint*, ALint*);
78     void alGetSourceiv(ALuint, ALenum, ALint*);
79     void alSourcePlayv(ALsizei, const(ALuint)*);
80     void alSourceStopv(ALsizei, const(ALuint)*);
81     void alSourceRewindv(ALsizei, const(ALuint)*);
82     void alSourcePausev(ALsizei, const(ALuint)*);
83     void alSourcePlay(ALuint);
84     void alSourcePause(ALuint);
85     void alSourceRewind(ALuint);
86     void alSourceStop(ALuint);
87     void alSourceQueueBuffers(ALuint, ALsizei, ALuint*);
88     void alSourceUnqueueBuffers(ALuint, ALsizei, ALuint*);
89     void alGenBuffers(ALsizei, ALuint*);
90     void alDeleteBuffers(ALsizei, const(ALuint)*);
91     ALboolean alIsBuffer(ALuint);
92     void alBufferData(ALuint, ALenum, const(ALvoid)*, ALsizei, ALsizei);
93     void alBufferf(ALuint, ALenum, ALfloat);
94     void alBuffer3f(ALuint, ALenum, ALfloat, ALfloat, ALfloat);
95     void alBufferfv(ALuint, ALenum, const(ALfloat)*);
96     void alBufferi(ALuint, ALenum, ALint);
97     void alBuffer3i(ALuint, ALenum, ALint, ALint, ALint);
98     void alBufferiv(ALuint, ALenum, const(ALint)*);
99     void alGetBufferf(ALuint, ALenum, ALfloat*);
100     void alGetBuffer3f(ALuint, ALenum, ALfloat*, ALfloat*, ALfloat*);
101     void alGetBufferfv(ALuint, ALenum, ALfloat*);
102     void alGetBufferi(ALuint, ALenum, ALint*);
103     void alGetBuffer3i(ALuint, ALenum, ALint*, ALint*, ALint*);
104     void alGetBufferiv(ALuint, ALenum, ALint*);
105     void alDopplerFactor(ALfloat);
106     void alDopplerVelocity(ALfloat);
107     void alSpeedOfSound(ALfloat);
108     void alDistanceModel(ALenum);
109     ALCcontext* alcCreateContext(ALCdevice*, const(ALCint)*);
110     ALCboolean alcMakeContextCurrent(ALCcontext*);
111     void alcProcessContext(ALCcontext*);
112     void alcSuspendContext(ALCcontext*);
113     void alcDestroyContext(ALCcontext*);
114     ALCcontext* alcGetCurrentContext();
115     ALCdevice* alcGetContextsDevice(ALCcontext*);
116     ALCdevice* alcOpenDevice(const(char)*);
117     ALCboolean alcCloseDevice(ALCdevice*);
118     ALCenum alcGetError(ALCdevice*);
119     ALCboolean alcIsExtensionPresent(ALCdevice*, const(char)*);
120     void* alcGetProcAddress(ALCdevice*, const(char)*);
121     ALCenum alcGetEnumValue(ALCdevice*, const(char)*);
122     const(char)* alcGetString(ALCdevice*, ALCenum);
123     void alcGetIntegerv(ALCdevice*, ALCenum, ALCsizei, ALCint*);
124     ALCdevice* alcCaptureOpenDevice(const(char)*, ALCuint, ALCenum, ALCsizei);
125     ALCboolean alcCaptureCloseDevice(ALCdevice*);
126     void alcCaptureStart(ALCdevice*);
127     void alcCaptureStop(ALCdevice*);
128     void alcCaptureSamples(ALCdevice*, ALCvoid*, ALCsizei);
129 }