root/trunk/al/alc.d

Revision 157, 3.0 kB (checked in by jpelcis, 2 years ago)

Added an OpenAL implementation with ALUT.

Added an OpenGL implementation with all extensions, GLU, and GLUT.

Removed a second copy of d3d9.d.

Line 
1 module c.al.alc;
2
3 /*
4  * OpenAL cross platform audio library
5  * Copyright  (C) 1999-2000 by authors.
6  * This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Library General Public
8  *  License as published by the Free Software Foundation; either
9  *  version 2 of the License, or  (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  *  License along with this library; if not, write to the
18  *  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  *  Boston, MA  02111-1307, USA.
20  * Or go to http://www.gnu.org/copyleft/lgpl.html
21  */
22
23 private import c.al.altypes;
24 private import c.al.alctypes;
25
26 const ubyte ALC_VERSION_0_1 = 1;
27
28 extern (C):
29 typedef ALCcontext* function(ALCdevice*, ALCint*) pfalcCreateContext;
30 typedef ALCenum function(ALCcontext*) pfalcMakeContextCurrent;
31 typedef void function(ALCcontext*) pfalcProcessContext;
32 typedef void function(ALCcontext*) pfalcSuspendContext;
33 typedef ALCenum function(ALCcontext*) pfalcDestroyContext;
34 typedef ALCcontext* function() pfalcGetCurrentContext;
35 typedef ALCdevice* function(ALCcontext*) pfalcGetContextsDevice;
36 typedef ALCdevice* function(ALchar*) pfalcOpenDevice;
37 typedef ALCboolean function(ALCdevice*) pfalcCloseDevice;
38 typedef ALCenum function(ALCdevice*) pfalcGetError;
39 typedef ALCboolean function(ALCdevice*, ALchar*) pfalcIsExtensionPresent;
40 typedef void* function(ALCdevice*, ALchar*) pfalcGetProcAddress;
41 typedef ALCenum function(ALCdevice*, ALchar*) pfalcGetEnumValue;
42 typedef ALchar* function(ALCdevice*, ALCenum) pfalcGetString;
43 typedef void function(ALCdevice*, ALCenum, ALCsizei, ALCint*) pfalcGetIntegerv;
44 typedef ALCdevice* function(ALCchar*, ALCuint, ALCenum, ALCsizei) pfalcCaptureOpenDevice;
45 typedef void function(ALCdevice*) pfalcCaptureCloseDevice;
46 typedef void function(ALCdevice*) pfalcCaptureStart;
47 typedef void function(ALCdevice*) pfalcCaptureStop;
48 typedef void function(ALCdevice*, ALCvoid*, ALCsizei) pfalcCaptureSamples;
49
50 pfalcCreateContext  alcCreateContext;
51 pfalcMakeContextCurrent alcMakeContextCurrent;
52 pfalcProcessContext alcProcessContext;
53 pfalcSuspendContext alcSuspendContext;
54 pfalcDestroyContext alcDestroyContext;
55 pfalcGetCurrentContext  alcGetCurrentContext;
56 pfalcGetContextsDevice  alcGetContextsDevice;
57 pfalcOpenDevice     alcOpenDevice;
58 pfalcCloseDevice    alcCloseDevice;
59 pfalcGetError       alcGetError;
60 pfalcIsExtensionPresent alcIsExtensionPresent;
61 pfalcGetProcAddress alcGetProcAddress;
62 pfalcGetEnumValue   alcGetEnumValue;
63 pfalcGetString      alcGetString;
64 pfalcGetIntegerv    alcGetIntegerv;
65 pfalcCaptureOpenDevice  alcCaptureOpenDevice;
66 pfalcCaptureCloseDevice alcCaptureCloseDevice;
67 pfalcCaptureStart   alcCaptureStart;
68 pfalcCaptureStop    alcCaptureStop;
69 pfalcCaptureSamples alcCaptureSamples;
Note: See TracBrowser for help on using the browser.