Wrap the wide-char enumerating functions instead of the ASCII
[dsound-openal.git] / alext.h
blobc78b8c3644bd130bb07a1271a67d37ced285a745
1 /**
2 * OpenAL cross platform audio library
3 * Copyright (C) 2008 by authors.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 * Or go to http://www.gnu.org/copyleft/lgpl.html
21 #ifndef AL_ALEXT_H
22 #define AL_ALEXT_H
24 #include <stddef.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 #ifndef AL_LOKI_IMA_ADPCM_format
31 #define AL_LOKI_IMA_ADPCM_format 1
32 #define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x10000
33 #define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x10001
34 #endif
36 #ifndef AL_LOKI_WAVE_format
37 #define AL_LOKI_WAVE_format 1
38 #define AL_FORMAT_WAVE_EXT 0x10002
39 #endif
41 #ifndef AL_EXT_vorbis
42 #define AL_EXT_vorbis 1
43 #define AL_FORMAT_VORBIS_EXT 0x10003
44 #endif
46 #ifndef AL_LOKI_quadriphonic
47 #define AL_LOKI_quadriphonic 1
48 #define AL_FORMAT_QUAD8_LOKI 0x10004
49 #define AL_FORMAT_QUAD16_LOKI 0x10005
50 #endif
52 #ifndef AL_EXT_float32
53 #define AL_EXT_float32 1
54 #define AL_FORMAT_MONO_FLOAT32 0x10010
55 #define AL_FORMAT_STEREO_FLOAT32 0x10011
56 #endif
58 #ifndef AL_EXT_double
59 #define AL_EXT_double 1
60 #define AL_FORMAT_MONO_DOUBLE_EXT 0x10012
61 #define AL_FORMAT_STEREO_DOUBLE_EXT 0x10013
62 #endif
64 #ifndef ALC_LOKI_audio_channel
65 #define ALC_LOKI_audio_channel 1
66 #define ALC_CHAN_MAIN_LOKI 0x500001
67 #define ALC_CHAN_PCM_LOKI 0x500002
68 #define ALC_CHAN_CD_LOKI 0x500003
69 #endif
71 #ifndef ALC_ENUMERATE_ALL_EXT
72 #define ALC_ENUMERATE_ALL_EXT 1
73 #define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
74 #define ALC_ALL_DEVICES_SPECIFIER 0x1013
75 #endif
77 #ifndef AL_EXT_MCFORMATS
78 #define AL_EXT_MCFORMATS 1
79 #define AL_FORMAT_QUAD8 0x1204
80 #define AL_FORMAT_QUAD16 0x1205
81 #define AL_FORMAT_QUAD32 0x1206
82 #define AL_FORMAT_REAR8 0x1207
83 #define AL_FORMAT_REAR16 0x1208
84 #define AL_FORMAT_REAR32 0x1209
85 #define AL_FORMAT_51CHN8 0x120A
86 #define AL_FORMAT_51CHN16 0x120B
87 #define AL_FORMAT_51CHN32 0x120C
88 #define AL_FORMAT_61CHN8 0x120D
89 #define AL_FORMAT_61CHN16 0x120E
90 #define AL_FORMAT_61CHN32 0x120F
91 #define AL_FORMAT_71CHN8 0x1210
92 #define AL_FORMAT_71CHN16 0x1211
93 #define AL_FORMAT_71CHN32 0x1212
94 #endif
96 #ifndef AL_EXT_MULAW_MCFORMATS
97 #define AL_EXT_MULAW_MCFORMATS 1
98 #define AL_FORMAT_MONO_MULAW 0x10014
99 #define AL_FORMAT_STEREO_MULAW 0x10015
100 #define AL_FORMAT_QUAD_MULAW 0x10021
101 #define AL_FORMAT_REAR_MULAW 0x10022
102 #define AL_FORMAT_51CHN_MULAW 0x10023
103 #define AL_FORMAT_61CHN_MULAW 0x10024
104 #define AL_FORMAT_71CHN_MULAW 0x10025
105 #endif
107 #ifndef AL_EXT_IMA4
108 #define AL_EXT_IMA4 1
109 #define AL_FORMAT_MONO_IMA4 0x1300
110 #define AL_FORMAT_STEREO_IMA4 0x1301
111 #endif
113 #ifndef AL_EXT_STATIC_BUFFER
114 #define AL_EXT_STATIC_BUFFER 1
115 typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei);
116 #ifdef AL_ALEXT_PROTOTYPES
117 AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq);
118 #endif
119 #endif
121 #ifndef ALC_EXT_EFX
122 #define ALC_EXT_EFX 1
123 #include "efx.h"
124 #endif
126 #ifndef ALC_EXT_disconnect
127 #define ALC_EXT_disconnect 1
128 #define ALC_CONNECTED 0x313
129 #endif
131 #ifndef ALC_EXT_thread_local_context
132 #define ALC_EXT_thread_local_context 1
133 typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context);
134 typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void);
135 #ifdef AL_ALEXT_PROTOTYPES
136 ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context);
137 ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void);
138 #endif
139 #endif
141 #ifndef AL_EXT_source_distance_model
142 #define AL_EXT_source_distance_model 1
143 #define AL_SOURCE_DISTANCE_MODEL 0x200
144 #endif
146 #ifndef AL_SOFT_buffer_sub_data
147 #define AL_SOFT_buffer_sub_data 1
148 #define AL_BYTE_RW_OFFSETS_SOFT 0x1031
149 #define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032
150 typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei);
151 #ifdef AL_ALEXT_PROTOTYPES
152 AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);
153 #endif
154 #endif
156 #ifdef __cplusplus
158 #endif
160 #endif