You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

466 lines
19 KiB

  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.
  8. *
  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.
  13. *
  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.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. * Or go to http://www.gnu.org/copyleft/lgpl.html
  19. */
  20. #ifndef AL_ALEXT_H
  21. #define AL_ALEXT_H
  22. #include <stddef.h>
  23. /* Define int64_t and uint64_t types */
  24. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  25. #include <inttypes.h>
  26. #elif defined(_WIN32) && defined(__GNUC__)
  27. #include <stdint.h>
  28. #elif defined(_WIN32)
  29. typedef __int64 int64_t;
  30. typedef unsigned __int64 uint64_t;
  31. #else
  32. /* Fallback if nothing above works */
  33. #include <inttypes.h>
  34. #endif
  35. #include "alc.h"
  36. #include "al.h"
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. #ifndef AL_LOKI_IMA_ADPCM_format
  41. #define AL_LOKI_IMA_ADPCM_format 1
  42. #define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x10000
  43. #define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x10001
  44. #endif
  45. #ifndef AL_LOKI_WAVE_format
  46. #define AL_LOKI_WAVE_format 1
  47. #define AL_FORMAT_WAVE_EXT 0x10002
  48. #endif
  49. #ifndef AL_EXT_vorbis
  50. #define AL_EXT_vorbis 1
  51. #define AL_FORMAT_VORBIS_EXT 0x10003
  52. #endif
  53. #ifndef AL_LOKI_quadriphonic
  54. #define AL_LOKI_quadriphonic 1
  55. #define AL_FORMAT_QUAD8_LOKI 0x10004
  56. #define AL_FORMAT_QUAD16_LOKI 0x10005
  57. #endif
  58. #ifndef AL_EXT_float32
  59. #define AL_EXT_float32 1
  60. #define AL_FORMAT_MONO_FLOAT32 0x10010
  61. #define AL_FORMAT_STEREO_FLOAT32 0x10011
  62. #endif
  63. #ifndef AL_EXT_double
  64. #define AL_EXT_double 1
  65. #define AL_FORMAT_MONO_DOUBLE_EXT 0x10012
  66. #define AL_FORMAT_STEREO_DOUBLE_EXT 0x10013
  67. #endif
  68. #ifndef AL_EXT_MULAW
  69. #define AL_EXT_MULAW 1
  70. #define AL_FORMAT_MONO_MULAW_EXT 0x10014
  71. #define AL_FORMAT_STEREO_MULAW_EXT 0x10015
  72. #endif
  73. #ifndef AL_EXT_ALAW
  74. #define AL_EXT_ALAW 1
  75. #define AL_FORMAT_MONO_ALAW_EXT 0x10016
  76. #define AL_FORMAT_STEREO_ALAW_EXT 0x10017
  77. #endif
  78. #ifndef ALC_LOKI_audio_channel
  79. #define ALC_LOKI_audio_channel 1
  80. #define ALC_CHAN_MAIN_LOKI 0x500001
  81. #define ALC_CHAN_PCM_LOKI 0x500002
  82. #define ALC_CHAN_CD_LOKI 0x500003
  83. #endif
  84. #ifndef AL_EXT_MCFORMATS
  85. #define AL_EXT_MCFORMATS 1
  86. #define AL_FORMAT_QUAD8 0x1204
  87. #define AL_FORMAT_QUAD16 0x1205
  88. #define AL_FORMAT_QUAD32 0x1206
  89. #define AL_FORMAT_REAR8 0x1207
  90. #define AL_FORMAT_REAR16 0x1208
  91. #define AL_FORMAT_REAR32 0x1209
  92. #define AL_FORMAT_51CHN8 0x120A
  93. #define AL_FORMAT_51CHN16 0x120B
  94. #define AL_FORMAT_51CHN32 0x120C
  95. #define AL_FORMAT_61CHN8 0x120D
  96. #define AL_FORMAT_61CHN16 0x120E
  97. #define AL_FORMAT_61CHN32 0x120F
  98. #define AL_FORMAT_71CHN8 0x1210
  99. #define AL_FORMAT_71CHN16 0x1211
  100. #define AL_FORMAT_71CHN32 0x1212
  101. #endif
  102. #ifndef AL_EXT_MULAW_MCFORMATS
  103. #define AL_EXT_MULAW_MCFORMATS 1
  104. #define AL_FORMAT_MONO_MULAW 0x10014
  105. #define AL_FORMAT_STEREO_MULAW 0x10015
  106. #define AL_FORMAT_QUAD_MULAW 0x10021
  107. #define AL_FORMAT_REAR_MULAW 0x10022
  108. #define AL_FORMAT_51CHN_MULAW 0x10023
  109. #define AL_FORMAT_61CHN_MULAW 0x10024
  110. #define AL_FORMAT_71CHN_MULAW 0x10025
  111. #endif
  112. #ifndef AL_EXT_IMA4
  113. #define AL_EXT_IMA4 1
  114. #define AL_FORMAT_MONO_IMA4 0x1300
  115. #define AL_FORMAT_STEREO_IMA4 0x1301
  116. #endif
  117. #ifndef AL_EXT_STATIC_BUFFER
  118. #define AL_EXT_STATIC_BUFFER 1
  119. typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei);
  120. #ifdef AL_ALEXT_PROTOTYPES
  121. AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq);
  122. #endif
  123. #endif
  124. #ifndef ALC_EXT_EFX
  125. #define ALC_EXT_EFX 1
  126. #include "efx.h"
  127. #endif
  128. #ifndef ALC_EXT_disconnect
  129. #define ALC_EXT_disconnect 1
  130. #define ALC_CONNECTED 0x313
  131. #endif
  132. #ifndef ALC_EXT_thread_local_context
  133. #define ALC_EXT_thread_local_context 1
  134. typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context);
  135. typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void);
  136. #ifdef AL_ALEXT_PROTOTYPES
  137. ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context);
  138. ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void);
  139. #endif
  140. #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
  145. #ifndef AL_SOFT_buffer_sub_data
  146. #define AL_SOFT_buffer_sub_data 1
  147. #define AL_BYTE_RW_OFFSETS_SOFT 0x1031
  148. #define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032
  149. typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei);
  150. #ifdef AL_ALEXT_PROTOTYPES
  151. AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);
  152. #endif
  153. #endif
  154. #ifndef AL_SOFT_loop_points
  155. #define AL_SOFT_loop_points 1
  156. #define AL_LOOP_POINTS_SOFT 0x2015
  157. #endif
  158. #ifndef AL_EXT_FOLDBACK
  159. #define AL_EXT_FOLDBACK 1
  160. #define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK"
  161. #define AL_FOLDBACK_EVENT_BLOCK 0x4112
  162. #define AL_FOLDBACK_EVENT_START 0x4111
  163. #define AL_FOLDBACK_EVENT_STOP 0x4113
  164. #define AL_FOLDBACK_MODE_MONO 0x4101
  165. #define AL_FOLDBACK_MODE_STEREO 0x4102
  166. typedef void (AL_APIENTRY*LPALFOLDBACKCALLBACK)(ALenum,ALsizei);
  167. typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTART)(ALenum,ALsizei,ALsizei,ALfloat*,LPALFOLDBACKCALLBACK);
  168. typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTOP)(void);
  169. #ifdef AL_ALEXT_PROTOTYPES
  170. AL_API void AL_APIENTRY alRequestFoldbackStart(ALenum mode,ALsizei count,ALsizei length,ALfloat *mem,LPALFOLDBACKCALLBACK callback);
  171. AL_API void AL_APIENTRY alRequestFoldbackStop(void);
  172. #endif
  173. #endif
  174. #ifndef ALC_EXT_DEDICATED
  175. #define ALC_EXT_DEDICATED 1
  176. #define AL_DEDICATED_GAIN 0x0001
  177. #define AL_EFFECT_DEDICATED_DIALOGUE 0x9001
  178. #define AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT 0x9000
  179. #endif
  180. #ifndef AL_SOFT_buffer_samples
  181. #define AL_SOFT_buffer_samples 1
  182. /* Channel configurations */
  183. #define AL_MONO_SOFT 0x1500
  184. #define AL_STEREO_SOFT 0x1501
  185. #define AL_REAR_SOFT 0x1502
  186. #define AL_QUAD_SOFT 0x1503
  187. #define AL_5POINT1_SOFT 0x1504
  188. #define AL_6POINT1_SOFT 0x1505
  189. #define AL_7POINT1_SOFT 0x1506
  190. /* Sample types */
  191. #define AL_BYTE_SOFT 0x1400
  192. #define AL_UNSIGNED_BYTE_SOFT 0x1401
  193. #define AL_SHORT_SOFT 0x1402
  194. #define AL_UNSIGNED_SHORT_SOFT 0x1403
  195. #define AL_INT_SOFT 0x1404
  196. #define AL_UNSIGNED_INT_SOFT 0x1405
  197. #define AL_FLOAT_SOFT 0x1406
  198. #define AL_DOUBLE_SOFT 0x1407
  199. #define AL_BYTE3_SOFT 0x1408
  200. #define AL_UNSIGNED_BYTE3_SOFT 0x1409
  201. /* Storage formats */
  202. #define AL_MONO8_SOFT 0x1100
  203. #define AL_MONO16_SOFT 0x1101
  204. #define AL_MONO32F_SOFT 0x10010
  205. #define AL_STEREO8_SOFT 0x1102
  206. #define AL_STEREO16_SOFT 0x1103
  207. #define AL_STEREO32F_SOFT 0x10011
  208. #define AL_QUAD8_SOFT 0x1204
  209. #define AL_QUAD16_SOFT 0x1205
  210. #define AL_QUAD32F_SOFT 0x1206
  211. #define AL_REAR8_SOFT 0x1207
  212. #define AL_REAR16_SOFT 0x1208
  213. #define AL_REAR32F_SOFT 0x1209
  214. #define AL_5POINT1_8_SOFT 0x120A
  215. #define AL_5POINT1_16_SOFT 0x120B
  216. #define AL_5POINT1_32F_SOFT 0x120C
  217. #define AL_6POINT1_8_SOFT 0x120D
  218. #define AL_6POINT1_16_SOFT 0x120E
  219. #define AL_6POINT1_32F_SOFT 0x120F
  220. #define AL_7POINT1_8_SOFT 0x1210
  221. #define AL_7POINT1_16_SOFT 0x1211
  222. #define AL_7POINT1_32F_SOFT 0x1212
  223. /* Buffer attributes */
  224. #define AL_INTERNAL_FORMAT_SOFT 0x2008
  225. #define AL_BYTE_LENGTH_SOFT 0x2009
  226. #define AL_SAMPLE_LENGTH_SOFT 0x200A
  227. #define AL_SEC_LENGTH_SOFT 0x200B
  228. typedef void (AL_APIENTRY*LPALBUFFERSAMPLESSOFT)(ALuint,ALuint,ALenum,ALsizei,ALenum,ALenum,const ALvoid*);
  229. typedef void (AL_APIENTRY*LPALBUFFERSUBSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,const ALvoid*);
  230. typedef void (AL_APIENTRY*LPALGETBUFFERSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,ALvoid*);
  231. typedef ALboolean (AL_APIENTRY*LPALISBUFFERFORMATSUPPORTEDSOFT)(ALenum);
  232. #ifdef AL_ALEXT_PROTOTYPES
  233. AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer, ALuint samplerate, ALenum internalformat, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
  234. AL_API void AL_APIENTRY alBufferSubSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
  235. AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, ALvoid *data);
  236. AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format);
  237. #endif
  238. #endif
  239. #ifndef AL_SOFT_direct_channels
  240. #define AL_SOFT_direct_channels 1
  241. #define AL_DIRECT_CHANNELS_SOFT 0x1033
  242. #endif
  243. #ifndef ALC_SOFT_loopback
  244. #define ALC_SOFT_loopback 1
  245. #define ALC_FORMAT_CHANNELS_SOFT 0x1990
  246. #define ALC_FORMAT_TYPE_SOFT 0x1991
  247. /* Sample types */
  248. #define ALC_BYTE_SOFT 0x1400
  249. #define ALC_UNSIGNED_BYTE_SOFT 0x1401
  250. #define ALC_SHORT_SOFT 0x1402
  251. #define ALC_UNSIGNED_SHORT_SOFT 0x1403
  252. #define ALC_INT_SOFT 0x1404
  253. #define ALC_UNSIGNED_INT_SOFT 0x1405
  254. #define ALC_FLOAT_SOFT 0x1406
  255. /* Channel configurations */
  256. #define ALC_MONO_SOFT 0x1500
  257. #define ALC_STEREO_SOFT 0x1501
  258. #define ALC_QUAD_SOFT 0x1503
  259. #define ALC_5POINT1_SOFT 0x1504
  260. #define ALC_6POINT1_SOFT 0x1505
  261. #define ALC_7POINT1_SOFT 0x1506
  262. typedef ALCdevice* (ALC_APIENTRY*LPALCLOOPBACKOPENDEVICESOFT)(const ALCchar*);
  263. typedef ALCboolean (ALC_APIENTRY*LPALCISRENDERFORMATSUPPORTEDSOFT)(ALCdevice*,ALCsizei,ALCenum,ALCenum);
  264. typedef void (ALC_APIENTRY*LPALCRENDERSAMPLESSOFT)(ALCdevice*,ALCvoid*,ALCsizei);
  265. #ifdef AL_ALEXT_PROTOTYPES
  266. ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceName);
  267. ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT(ALCdevice *device, ALCsizei freq, ALCenum channels, ALCenum type);
  268. ALC_API void ALC_APIENTRY alcRenderSamplesSOFT(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
  269. #endif
  270. #endif
  271. #ifndef AL_EXT_STEREO_ANGLES
  272. #define AL_EXT_STEREO_ANGLES 1
  273. #define AL_STEREO_ANGLES 0x1030
  274. #endif
  275. #ifndef AL_EXT_SOURCE_RADIUS
  276. #define AL_EXT_SOURCE_RADIUS 1
  277. #define AL_SOURCE_RADIUS 0x1031
  278. #endif
  279. #ifndef AL_SOFT_source_latency
  280. #define AL_SOFT_source_latency 1
  281. #define AL_SAMPLE_OFFSET_LATENCY_SOFT 0x1200
  282. #define AL_SEC_OFFSET_LATENCY_SOFT 0x1201
  283. typedef int64_t ALint64SOFT;
  284. typedef uint64_t ALuint64SOFT;
  285. typedef void (AL_APIENTRY*LPALSOURCEDSOFT)(ALuint,ALenum,ALdouble);
  286. typedef void (AL_APIENTRY*LPALSOURCE3DSOFT)(ALuint,ALenum,ALdouble,ALdouble,ALdouble);
  287. typedef void (AL_APIENTRY*LPALSOURCEDVSOFT)(ALuint,ALenum,const ALdouble*);
  288. typedef void (AL_APIENTRY*LPALGETSOURCEDSOFT)(ALuint,ALenum,ALdouble*);
  289. typedef void (AL_APIENTRY*LPALGETSOURCE3DSOFT)(ALuint,ALenum,ALdouble*,ALdouble*,ALdouble*);
  290. typedef void (AL_APIENTRY*LPALGETSOURCEDVSOFT)(ALuint,ALenum,ALdouble*);
  291. typedef void (AL_APIENTRY*LPALSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT);
  292. typedef void (AL_APIENTRY*LPALSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT,ALint64SOFT,ALint64SOFT);
  293. typedef void (AL_APIENTRY*LPALSOURCEI64VSOFT)(ALuint,ALenum,const ALint64SOFT*);
  294. typedef void (AL_APIENTRY*LPALGETSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT*);
  295. typedef void (AL_APIENTRY*LPALGETSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT*,ALint64SOFT*,ALint64SOFT*);
  296. typedef void (AL_APIENTRY*LPALGETSOURCEI64VSOFT)(ALuint,ALenum,ALint64SOFT*);
  297. #ifdef AL_ALEXT_PROTOTYPES
  298. AL_API void AL_APIENTRY alSourcedSOFT(ALuint source, ALenum param, ALdouble value);
  299. AL_API void AL_APIENTRY alSource3dSOFT(ALuint source, ALenum param, ALdouble value1, ALdouble value2, ALdouble value3);
  300. AL_API void AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdouble *values);
  301. AL_API void AL_APIENTRY alGetSourcedSOFT(ALuint source, ALenum param, ALdouble *value);
  302. AL_API void AL_APIENTRY alGetSource3dSOFT(ALuint source, ALenum param, ALdouble *value1, ALdouble *value2, ALdouble *value3);
  303. AL_API void AL_APIENTRY alGetSourcedvSOFT(ALuint source, ALenum param, ALdouble *values);
  304. AL_API void AL_APIENTRY alSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT value);
  305. AL_API void AL_APIENTRY alSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT value1, ALint64SOFT value2, ALint64SOFT value3);
  306. AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALint64SOFT *values);
  307. AL_API void AL_APIENTRY alGetSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT *value);
  308. AL_API void AL_APIENTRY alGetSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT *value1, ALint64SOFT *value2, ALint64SOFT *value3);
  309. AL_API void AL_APIENTRY alGetSourcei64vSOFT(ALuint source, ALenum param, ALint64SOFT *values);
  310. #endif
  311. #endif
  312. #ifndef ALC_EXT_DEFAULT_FILTER_ORDER
  313. #define ALC_EXT_DEFAULT_FILTER_ORDER 1
  314. #define ALC_DEFAULT_FILTER_ORDER 0x1100
  315. #endif
  316. #ifndef AL_SOFT_deferred_updates
  317. #define AL_SOFT_deferred_updates 1
  318. #define AL_DEFERRED_UPDATES_SOFT 0xC002
  319. typedef ALvoid (AL_APIENTRY*LPALDEFERUPDATESSOFT)(void);
  320. typedef ALvoid (AL_APIENTRY*LPALPROCESSUPDATESSOFT)(void);
  321. #ifdef AL_ALEXT_PROTOTYPES
  322. AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void);
  323. AL_API ALvoid AL_APIENTRY alProcessUpdatesSOFT(void);
  324. #endif
  325. #endif
  326. #ifndef AL_SOFT_block_alignment
  327. #define AL_SOFT_block_alignment 1
  328. #define AL_UNPACK_BLOCK_ALIGNMENT_SOFT 0x200C
  329. #define AL_PACK_BLOCK_ALIGNMENT_SOFT 0x200D
  330. #endif
  331. #ifndef AL_SOFT_MSADPCM
  332. #define AL_SOFT_MSADPCM 1
  333. #define AL_FORMAT_MONO_MSADPCM_SOFT 0x1302
  334. #define AL_FORMAT_STEREO_MSADPCM_SOFT 0x1303
  335. #endif
  336. #ifndef AL_SOFT_source_length
  337. #define AL_SOFT_source_length 1
  338. /*#define AL_BYTE_LENGTH_SOFT 0x2009*/
  339. /*#define AL_SAMPLE_LENGTH_SOFT 0x200A*/
  340. /*#define AL_SEC_LENGTH_SOFT 0x200B*/
  341. #endif
  342. #ifndef ALC_SOFT_pause_device
  343. #define ALC_SOFT_pause_device 1
  344. typedef void (ALC_APIENTRY*LPALCDEVICEPAUSESOFT)(ALCdevice *device);
  345. typedef void (ALC_APIENTRY*LPALCDEVICERESUMESOFT)(ALCdevice *device);
  346. #ifdef AL_ALEXT_PROTOTYPES
  347. ALC_API void ALC_APIENTRY alcDevicePauseSOFT(ALCdevice *device);
  348. ALC_API void ALC_APIENTRY alcDeviceResumeSOFT(ALCdevice *device);
  349. #endif
  350. #endif
  351. #ifndef AL_EXT_BFORMAT
  352. #define AL_EXT_BFORMAT 1
  353. #define AL_FORMAT_BFORMAT2D_8 0x20021
  354. #define AL_FORMAT_BFORMAT2D_16 0x20022
  355. #define AL_FORMAT_BFORMAT2D_FLOAT32 0x20023
  356. #define AL_FORMAT_BFORMAT3D_8 0x20031
  357. #define AL_FORMAT_BFORMAT3D_16 0x20032
  358. #define AL_FORMAT_BFORMAT3D_FLOAT32 0x20033
  359. #endif
  360. #ifndef AL_EXT_MULAW_BFORMAT
  361. #define AL_EXT_MULAW_BFORMAT 1
  362. #define AL_FORMAT_BFORMAT2D_MULAW 0x10031
  363. #define AL_FORMAT_BFORMAT3D_MULAW 0x10032
  364. #endif
  365. #ifndef ALC_SOFT_HRTF
  366. #define ALC_SOFT_HRTF 1
  367. #define ALC_HRTF_SOFT 0x1992
  368. #define ALC_DONT_CARE_SOFT 0x0002
  369. #define ALC_HRTF_STATUS_SOFT 0x1993
  370. #define ALC_HRTF_DISABLED_SOFT 0x0000
  371. #define ALC_HRTF_ENABLED_SOFT 0x0001
  372. #define ALC_HRTF_DENIED_SOFT 0x0002
  373. #define ALC_HRTF_REQUIRED_SOFT 0x0003
  374. #define ALC_HRTF_HEADPHONES_DETECTED_SOFT 0x0004
  375. #define ALC_HRTF_UNSUPPORTED_FORMAT_SOFT 0x0005
  376. #define ALC_NUM_HRTF_SPECIFIERS_SOFT 0x1994
  377. #define ALC_HRTF_SPECIFIER_SOFT 0x1995
  378. #define ALC_HRTF_ID_SOFT 0x1996
  379. typedef const ALCchar* (ALC_APIENTRY*LPALCGETSTRINGISOFT)(ALCdevice *device, ALCenum paramName, ALCsizei index);
  380. typedef ALCboolean (ALC_APIENTRY*LPALCRESETDEVICESOFT)(ALCdevice *device, const ALCint *attribs);
  381. #ifdef AL_ALEXT_PROTOTYPES
  382. ALC_API const ALCchar* ALC_APIENTRY alcGetStringiSOFT(ALCdevice *device, ALCenum paramName, ALCsizei index);
  383. ALC_API ALCboolean ALC_APIENTRY alcResetDeviceSOFT(ALCdevice *device, const ALCint *attribs);
  384. #endif
  385. #endif
  386. #ifndef AL_SOFT_gain_clamp_ex
  387. #define AL_SOFT_gain_clamp_ex 1
  388. #define AL_GAIN_LIMIT_SOFT 0x200E
  389. #endif
  390. #ifndef AL_SOFT_source_resampler
  391. #define AL_SOFT_source_resampler
  392. #define AL_NUM_RESAMPLERS_SOFT 0x1210
  393. #define AL_DEFAULT_RESAMPLER_SOFT 0x1211
  394. #define AL_SOURCE_RESAMPLER_SOFT 0x1212
  395. #define AL_RESAMPLER_NAME_SOFT 0x1213
  396. typedef const ALchar* (AL_APIENTRY*LPALGETSTRINGISOFT)(ALenum pname, ALsizei index);
  397. #ifdef AL_ALEXT_PROTOTYPES
  398. AL_API const ALchar* AL_APIENTRY alGetStringiSOFT(ALenum pname, ALsizei index);
  399. #endif
  400. #endif
  401. #ifndef AL_SOFT_source_spatialize
  402. #define AL_SOFT_source_spatialize
  403. #define AL_SOURCE_SPATIALIZE_SOFT 0x1214
  404. #define AL_AUTO_SOFT 0x0002
  405. #endif
  406. #ifndef ALC_SOFT_output_limiter
  407. #define ALC_SOFT_output_limiter
  408. #define ALC_OUTPUT_LIMITER_SOFT 0x199A
  409. #endif
  410. #ifdef __cplusplus
  411. }
  412. #endif
  413. #endif