root/trunk/al/altypes.d

Revision 157, 3.8 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.altypes;
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 alias byte  ALboolean;
24 alias char  ALchar;
25 alias byte  ALbyte;
26 alias ubyte ALubyte;
27 alias short ALshort;
28 alias ushort    ALushort;
29 alias int   ALint;
30 alias uint  ALuint;
31 alias float ALfloat;
32 alias double    ALdouble;
33 alias uint  ALsizei;
34 alias void  ALvoid;
35 alias int   ALenum;
36 alias uint  ALbitfield;
37 alias float ALclampf;
38 alias double    ALclampd;
39
40 const byte AL_INVALID           = -1;
41 const ubyte AL_NONE         = 0;
42 const ubyte AL_FALSE            = 0;
43 const ubyte AL_TRUE         = 1;
44 const uint AL_SOURCE_RELATIVE       = 0x202;
45 const uint AL_CONE_INNER_ANGLE      = 0x1001;
46 const uint AL_CONE_OUTER_ANGLE      = 0x1002;
47 const uint AL_PITCH         = 0x1003;
48 const uint AL_POSITION          = 0x1004;
49 const uint AL_DIRECTION         = 0x1005;
50 const uint AL_VELOCITY          = 0x1006;
51 const uint AL_LOOPING           = 0x1007;
52 const uint AL_BUFFER            = 0x1009;
53 const uint AL_GAIN          = 0x100A;
54 const uint AL_MIN_GAIN          = 0x100D;
55 const uint AL_MAX_GAIN          = 0x100E;
56 const uint AL_ORIENTATION       = 0x100F;
57 const uint AL_CHANNEL_MASK      = 0x3000;
58 const uint AL_SOURCE_STATE      = 0x1010;
59 const uint AL_INITIAL           = 0x1011;
60 const uint AL_PLAYING           = 0x1012;
61 const uint AL_PAUSED            = 0x1013;
62 const uint AL_STOPPED           = 0x1014;
63 const uint AL_BUFFERS_QUEUED        = 0x1015;
64 const uint AL_BUFFERS_PROCESSED     = 0x1016;
65 const uint AL_SEC_OFFSET        = 0x1024;
66 const uint AL_SAMPLE_OFFSET     = 0x1025;
67 const uint AL_BYTE_OFFSET       = 0x1026;
68 const uint AL_SOURCE_TYPE       = 0x1027;
69 const uint AL_STATIC            = 0x1028;
70 const uint AL_STREAMING         = 0x1029;
71 const uint AL_UNDETERMINED      = 0x1030;
72 const uint AL_FORMAT_MONO8      = 0x1100;
73 const uint AL_FORMAT_MONO16     = 0x1101;
74 const uint AL_FORMAT_STEREO8        = 0x1102;
75 const uint AL_FORMAT_STEREO16       = 0x1103;
76 const uint AL_REFERENCE_DISTANCE    = 0x1020;
77 const uint AL_ROLLOFF_FACTOR        = 0x1021;
78 const uint AL_CONE_OUTER_GAIN       = 0x1022;
79 const uint AL_MAX_DISTANCE      = 0x1023;
80 const uint AL_FREQUENCY         = 0x2001;
81 const uint AL_BITS          = 0x2002;
82 const uint AL_CHANNELS          = 0x2003;
83 const uint AL_SIZE          = 0x2004;
84 const uint AL_UNUSED            = 0x2010;
85 const uint AL_PENDING           = 0x2011;
86 const uint AL_PROCESSED         = 0x2012;
87 const uint AL_NO_ERROR          = AL_FALSE;
88 const uint AL_INVALID_NAME      = 0xA001;
89 const uint AL_ILLEGAL_ENUM      = 0xA002;
90 const uint AL_INVALID_ENUM      = 0xA002;
91 const uint AL_INVALID_VALUE     = 0xA003;
92 const uint AL_ILLEGAL_COMMAND       = 0xA004;
93 const uint AL_INVALID_OPERATION     = 0xA004;
94 const uint AL_OUT_OF_MEMORY     = 0xA005;
95 const uint AL_VENDOR            = 0xB001;
96 const uint AL_VERSION           = 0xB002;
97 const uint AL_RENDERER          = 0xB003;
98 const uint AL_EXTENSIONS        = 0xB004;
99 const uint AL_DOPPLER_FACTOR        = 0xC000;
100 const uint AL_DOPPLER_VELOCITY      = 0xC001;
101 const uint AL_SPEED_OF_SOUND        = 0xC003;
102 const uint AL_DISTANCE_MODEL        = 0xD000;
103 const uint AL_INVERSE_DISTANCE      = 0xD001;
104 const uint AL_INVERSE_DISTANCE_CLAMPED  = 0xD002;
105 const uint AL_LINEAR_DISTANCE       = 0xD003;
106 const uint AL_LINEAR_DISTANCE_CLAMPED   = 0xD004;
107 const uint AL_EXPONENT_DISTANCE     = 0xD005;
108 const uint AL_EXPONENT_DISTANCE_CLAMPED = 0xD006;
Note: See TracBrowser for help on using the browser.