🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
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.

516 lines
21 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. /* Provides support for surround sound buffer formats with 8, 16, and 32-bit
  87. * samples.
  88. *
  89. * QUAD8: Unsigned 8-bit, Quadraphonic (Front Left, Front Right, Rear Left,
  90. * Rear Right).
  91. * QUAD16: Signed 16-bit, Quadraphonic.
  92. * QUAD32: 32-bit float, Quadraphonic.
  93. * REAR8: Unsigned 8-bit, Rear Stereo (Rear Left, Rear Right).
  94. * REAR16: Signed 16-bit, Rear Stereo.
  95. * REAR32: 32-bit float, Rear Stereo.
  96. * 51CHN8: Unsigned 8-bit, 5.1 Surround (Front Left, Front Right, Front Center,
  97. * LFE, Side Left, Side Right). Note that some audio systems may label
  98. * 5.1's Side channels as Rear or Surround; they are equivalent for the
  99. * purposes of this extension.
  100. * 51CHN16: Signed 16-bit, 5.1 Surround.
  101. * 51CHN32: 32-bit float, 5.1 Surround.
  102. * 61CHN8: Unsigned 8-bit, 6.1 Surround (Front Left, Front Right, Front Center,
  103. * LFE, Rear Center, Side Left, Side Right).
  104. * 61CHN16: Signed 16-bit, 6.1 Surround.
  105. * 61CHN32: 32-bit float, 6.1 Surround.
  106. * 71CHN8: Unsigned 8-bit, 7.1 Surround (Front Left, Front Right, Front Center,
  107. * LFE, Rear Left, Rear Right, Side Left, Side Right).
  108. * 71CHN16: Signed 16-bit, 7.1 Surround.
  109. * 71CHN32: 32-bit float, 7.1 Surround.
  110. */
  111. #define AL_FORMAT_QUAD8 0x1204
  112. #define AL_FORMAT_QUAD16 0x1205
  113. #define AL_FORMAT_QUAD32 0x1206
  114. #define AL_FORMAT_REAR8 0x1207
  115. #define AL_FORMAT_REAR16 0x1208
  116. #define AL_FORMAT_REAR32 0x1209
  117. #define AL_FORMAT_51CHN8 0x120A
  118. #define AL_FORMAT_51CHN16 0x120B
  119. #define AL_FORMAT_51CHN32 0x120C
  120. #define AL_FORMAT_61CHN8 0x120D
  121. #define AL_FORMAT_61CHN16 0x120E
  122. #define AL_FORMAT_61CHN32 0x120F
  123. #define AL_FORMAT_71CHN8 0x1210
  124. #define AL_FORMAT_71CHN16 0x1211
  125. #define AL_FORMAT_71CHN32 0x1212
  126. #endif
  127. #ifndef AL_EXT_MULAW_MCFORMATS
  128. #define AL_EXT_MULAW_MCFORMATS 1
  129. #define AL_FORMAT_MONO_MULAW 0x10014
  130. #define AL_FORMAT_STEREO_MULAW 0x10015
  131. #define AL_FORMAT_QUAD_MULAW 0x10021
  132. #define AL_FORMAT_REAR_MULAW 0x10022
  133. #define AL_FORMAT_51CHN_MULAW 0x10023
  134. #define AL_FORMAT_61CHN_MULAW 0x10024
  135. #define AL_FORMAT_71CHN_MULAW 0x10025
  136. #endif
  137. #ifndef AL_EXT_IMA4
  138. #define AL_EXT_IMA4 1
  139. #define AL_FORMAT_MONO_IMA4 0x1300
  140. #define AL_FORMAT_STEREO_IMA4 0x1301
  141. #endif
  142. #ifndef AL_EXT_STATIC_BUFFER
  143. #define AL_EXT_STATIC_BUFFER 1
  144. typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei);
  145. #ifdef AL_ALEXT_PROTOTYPES
  146. AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq);
  147. #endif
  148. #endif
  149. #ifndef ALC_EXT_EFX
  150. #define ALC_EXT_EFX 1
  151. #include "efx.h"
  152. #endif
  153. #ifndef ALC_EXT_disconnect
  154. #define ALC_EXT_disconnect 1
  155. #define ALC_CONNECTED 0x313
  156. #endif
  157. #ifndef ALC_EXT_thread_local_context
  158. #define ALC_EXT_thread_local_context 1
  159. typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context);
  160. typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void);
  161. #ifdef AL_ALEXT_PROTOTYPES
  162. ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context);
  163. ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void);
  164. #endif
  165. #endif
  166. #ifndef AL_EXT_source_distance_model
  167. #define AL_EXT_source_distance_model 1
  168. #define AL_SOURCE_DISTANCE_MODEL 0x200
  169. #endif
  170. #ifndef AL_SOFT_buffer_sub_data
  171. #define AL_SOFT_buffer_sub_data 1
  172. #define AL_BYTE_RW_OFFSETS_SOFT 0x1031
  173. #define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032
  174. typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei);
  175. #ifdef AL_ALEXT_PROTOTYPES
  176. AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);
  177. #endif
  178. #endif
  179. #ifndef AL_SOFT_loop_points
  180. #define AL_SOFT_loop_points 1
  181. #define AL_LOOP_POINTS_SOFT 0x2015
  182. #endif
  183. #ifndef AL_EXT_FOLDBACK
  184. #define AL_EXT_FOLDBACK 1
  185. #define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK"
  186. #define AL_FOLDBACK_EVENT_BLOCK 0x4112
  187. #define AL_FOLDBACK_EVENT_START 0x4111
  188. #define AL_FOLDBACK_EVENT_STOP 0x4113
  189. #define AL_FOLDBACK_MODE_MONO 0x4101
  190. #define AL_FOLDBACK_MODE_STEREO 0x4102
  191. typedef void (AL_APIENTRY*LPALFOLDBACKCALLBACK)(ALenum,ALsizei);
  192. typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTART)(ALenum,ALsizei,ALsizei,ALfloat*,LPALFOLDBACKCALLBACK);
  193. typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTOP)(void);
  194. #ifdef AL_ALEXT_PROTOTYPES
  195. AL_API void AL_APIENTRY alRequestFoldbackStart(ALenum mode,ALsizei count,ALsizei length,ALfloat *mem,LPALFOLDBACKCALLBACK callback);
  196. AL_API void AL_APIENTRY alRequestFoldbackStop(void);
  197. #endif
  198. #endif
  199. #ifndef ALC_EXT_DEDICATED
  200. #define ALC_EXT_DEDICATED 1
  201. #define AL_DEDICATED_GAIN 0x0001
  202. #define AL_EFFECT_DEDICATED_DIALOGUE 0x9001
  203. #define AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT 0x9000
  204. #endif
  205. #ifndef AL_SOFT_buffer_samples
  206. #define AL_SOFT_buffer_samples 1
  207. /* Channel configurations */
  208. #define AL_MONO_SOFT 0x1500
  209. #define AL_STEREO_SOFT 0x1501
  210. #define AL_REAR_SOFT 0x1502
  211. #define AL_QUAD_SOFT 0x1503
  212. #define AL_5POINT1_SOFT 0x1504
  213. #define AL_6POINT1_SOFT 0x1505
  214. #define AL_7POINT1_SOFT 0x1506
  215. /* Sample types */
  216. #define AL_BYTE_SOFT 0x1400
  217. #define AL_UNSIGNED_BYTE_SOFT 0x1401
  218. #define AL_SHORT_SOFT 0x1402
  219. #define AL_UNSIGNED_SHORT_SOFT 0x1403
  220. #define AL_INT_SOFT 0x1404
  221. #define AL_UNSIGNED_INT_SOFT 0x1405
  222. #define AL_FLOAT_SOFT 0x1406
  223. #define AL_DOUBLE_SOFT 0x1407
  224. #define AL_BYTE3_SOFT 0x1408
  225. #define AL_UNSIGNED_BYTE3_SOFT 0x1409
  226. /* Storage formats */
  227. #define AL_MONO8_SOFT 0x1100
  228. #define AL_MONO16_SOFT 0x1101
  229. #define AL_MONO32F_SOFT 0x10010
  230. #define AL_STEREO8_SOFT 0x1102
  231. #define AL_STEREO16_SOFT 0x1103
  232. #define AL_STEREO32F_SOFT 0x10011
  233. #define AL_QUAD8_SOFT 0x1204
  234. #define AL_QUAD16_SOFT 0x1205
  235. #define AL_QUAD32F_SOFT 0x1206
  236. #define AL_REAR8_SOFT 0x1207
  237. #define AL_REAR16_SOFT 0x1208
  238. #define AL_REAR32F_SOFT 0x1209
  239. #define AL_5POINT1_8_SOFT 0x120A
  240. #define AL_5POINT1_16_SOFT 0x120B
  241. #define AL_5POINT1_32F_SOFT 0x120C
  242. #define AL_6POINT1_8_SOFT 0x120D
  243. #define AL_6POINT1_16_SOFT 0x120E
  244. #define AL_6POINT1_32F_SOFT 0x120F
  245. #define AL_7POINT1_8_SOFT 0x1210
  246. #define AL_7POINT1_16_SOFT 0x1211
  247. #define AL_7POINT1_32F_SOFT 0x1212
  248. /* Buffer attributes */
  249. #define AL_INTERNAL_FORMAT_SOFT 0x2008
  250. #define AL_BYTE_LENGTH_SOFT 0x2009
  251. #define AL_SAMPLE_LENGTH_SOFT 0x200A
  252. #define AL_SEC_LENGTH_SOFT 0x200B
  253. typedef void (AL_APIENTRY*LPALBUFFERSAMPLESSOFT)(ALuint,ALuint,ALenum,ALsizei,ALenum,ALenum,const ALvoid*);
  254. typedef void (AL_APIENTRY*LPALBUFFERSUBSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,const ALvoid*);
  255. typedef void (AL_APIENTRY*LPALGETBUFFERSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,ALvoid*);
  256. typedef ALboolean (AL_APIENTRY*LPALISBUFFERFORMATSUPPORTEDSOFT)(ALenum);
  257. #ifdef AL_ALEXT_PROTOTYPES
  258. AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer, ALuint samplerate, ALenum internalformat, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
  259. AL_API void AL_APIENTRY alBufferSubSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
  260. AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, ALvoid *data);
  261. AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format);
  262. #endif
  263. #endif
  264. #ifndef AL_SOFT_direct_channels
  265. #define AL_SOFT_direct_channels 1
  266. #define AL_DIRECT_CHANNELS_SOFT 0x1033
  267. #endif
  268. #ifndef ALC_SOFT_loopback
  269. #define ALC_SOFT_loopback 1
  270. #define ALC_FORMAT_CHANNELS_SOFT 0x1990
  271. #define ALC_FORMAT_TYPE_SOFT 0x1991
  272. /* Sample types */
  273. #define ALC_BYTE_SOFT 0x1400
  274. #define ALC_UNSIGNED_BYTE_SOFT 0x1401
  275. #define ALC_SHORT_SOFT 0x1402
  276. #define ALC_UNSIGNED_SHORT_SOFT 0x1403
  277. #define ALC_INT_SOFT 0x1404
  278. #define ALC_UNSIGNED_INT_SOFT 0x1405
  279. #define ALC_FLOAT_SOFT 0x1406
  280. /* Channel configurations */
  281. #define ALC_MONO_SOFT 0x1500
  282. #define ALC_STEREO_SOFT 0x1501
  283. #define ALC_QUAD_SOFT 0x1503
  284. #define ALC_5POINT1_SOFT 0x1504
  285. #define ALC_6POINT1_SOFT 0x1505
  286. #define ALC_7POINT1_SOFT 0x1506
  287. typedef ALCdevice* (ALC_APIENTRY*LPALCLOOPBACKOPENDEVICESOFT)(const ALCchar*);
  288. typedef ALCboolean (ALC_APIENTRY*LPALCISRENDERFORMATSUPPORTEDSOFT)(ALCdevice*,ALCsizei,ALCenum,ALCenum);
  289. typedef void (ALC_APIENTRY*LPALCRENDERSAMPLESSOFT)(ALCdevice*,ALCvoid*,ALCsizei);
  290. #ifdef AL_ALEXT_PROTOTYPES
  291. ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceName);
  292. ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT(ALCdevice *device, ALCsizei freq, ALCenum channels, ALCenum type);
  293. ALC_API void ALC_APIENTRY alcRenderSamplesSOFT(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
  294. #endif
  295. #endif
  296. #ifndef AL_EXT_STEREO_ANGLES
  297. #define AL_EXT_STEREO_ANGLES 1
  298. #define AL_STEREO_ANGLES 0x1030
  299. #endif
  300. #ifndef AL_EXT_SOURCE_RADIUS
  301. #define AL_EXT_SOURCE_RADIUS 1
  302. #define AL_SOURCE_RADIUS 0x1031
  303. #endif
  304. #ifndef AL_SOFT_source_latency
  305. #define AL_SOFT_source_latency 1
  306. #define AL_SAMPLE_OFFSET_LATENCY_SOFT 0x1200
  307. #define AL_SEC_OFFSET_LATENCY_SOFT 0x1201
  308. typedef int64_t ALint64SOFT;
  309. typedef uint64_t ALuint64SOFT;
  310. typedef void (AL_APIENTRY*LPALSOURCEDSOFT)(ALuint,ALenum,ALdouble);
  311. typedef void (AL_APIENTRY*LPALSOURCE3DSOFT)(ALuint,ALenum,ALdouble,ALdouble,ALdouble);
  312. typedef void (AL_APIENTRY*LPALSOURCEDVSOFT)(ALuint,ALenum,const ALdouble*);
  313. typedef void (AL_APIENTRY*LPALGETSOURCEDSOFT)(ALuint,ALenum,ALdouble*);
  314. typedef void (AL_APIENTRY*LPALGETSOURCE3DSOFT)(ALuint,ALenum,ALdouble*,ALdouble*,ALdouble*);
  315. typedef void (AL_APIENTRY*LPALGETSOURCEDVSOFT)(ALuint,ALenum,ALdouble*);
  316. typedef void (AL_APIENTRY*LPALSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT);
  317. typedef void (AL_APIENTRY*LPALSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT,ALint64SOFT,ALint64SOFT);
  318. typedef void (AL_APIENTRY*LPALSOURCEI64VSOFT)(ALuint,ALenum,const ALint64SOFT*);
  319. typedef void (AL_APIENTRY*LPALGETSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT*);
  320. typedef void (AL_APIENTRY*LPALGETSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT*,ALint64SOFT*,ALint64SOFT*);
  321. typedef void (AL_APIENTRY*LPALGETSOURCEI64VSOFT)(ALuint,ALenum,ALint64SOFT*);
  322. #ifdef AL_ALEXT_PROTOTYPES
  323. AL_API void AL_APIENTRY alSourcedSOFT(ALuint source, ALenum param, ALdouble value);
  324. AL_API void AL_APIENTRY alSource3dSOFT(ALuint source, ALenum param, ALdouble value1, ALdouble value2, ALdouble value3);
  325. AL_API void AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdouble *values);
  326. AL_API void AL_APIENTRY alGetSourcedSOFT(ALuint source, ALenum param, ALdouble *value);
  327. AL_API void AL_APIENTRY alGetSource3dSOFT(ALuint source, ALenum param, ALdouble *value1, ALdouble *value2, ALdouble *value3);
  328. AL_API void AL_APIENTRY alGetSourcedvSOFT(ALuint source, ALenum param, ALdouble *values);
  329. AL_API void AL_APIENTRY alSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT value);
  330. AL_API void AL_APIENTRY alSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT value1, ALint64SOFT value2, ALint64SOFT value3);
  331. AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALint64SOFT *values);
  332. AL_API void AL_APIENTRY alGetSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT *value);
  333. AL_API void AL_APIENTRY alGetSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT *value1, ALint64SOFT *value2, ALint64SOFT *value3);
  334. AL_API void AL_APIENTRY alGetSourcei64vSOFT(ALuint source, ALenum param, ALint64SOFT *values);
  335. #endif
  336. #endif
  337. #ifndef ALC_EXT_DEFAULT_FILTER_ORDER
  338. #define ALC_EXT_DEFAULT_FILTER_ORDER 1
  339. #define ALC_DEFAULT_FILTER_ORDER 0x1100
  340. #endif
  341. #ifndef AL_SOFT_deferred_updates
  342. #define AL_SOFT_deferred_updates 1
  343. #define AL_DEFERRED_UPDATES_SOFT 0xC002
  344. typedef ALvoid (AL_APIENTRY*LPALDEFERUPDATESSOFT)(void);
  345. typedef ALvoid (AL_APIENTRY*LPALPROCESSUPDATESSOFT)(void);
  346. #ifdef AL_ALEXT_PROTOTYPES
  347. AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void);
  348. AL_API ALvoid AL_APIENTRY alProcessUpdatesSOFT(void);
  349. #endif
  350. #endif
  351. #ifndef AL_SOFT_block_alignment
  352. #define AL_SOFT_block_alignment 1
  353. #define AL_UNPACK_BLOCK_ALIGNMENT_SOFT 0x200C
  354. #define AL_PACK_BLOCK_ALIGNMENT_SOFT 0x200D
  355. #endif
  356. #ifndef AL_SOFT_MSADPCM
  357. #define AL_SOFT_MSADPCM 1
  358. #define AL_FORMAT_MONO_MSADPCM_SOFT 0x1302
  359. #define AL_FORMAT_STEREO_MSADPCM_SOFT 0x1303
  360. #endif
  361. #ifndef AL_SOFT_source_length
  362. #define AL_SOFT_source_length 1
  363. /*#define AL_BYTE_LENGTH_SOFT 0x2009*/
  364. /*#define AL_SAMPLE_LENGTH_SOFT 0x200A*/
  365. /*#define AL_SEC_LENGTH_SOFT 0x200B*/
  366. #endif
  367. #ifndef ALC_SOFT_pause_device
  368. #define ALC_SOFT_pause_device 1
  369. typedef void (ALC_APIENTRY*LPALCDEVICEPAUSESOFT)(ALCdevice *device);
  370. typedef void (ALC_APIENTRY*LPALCDEVICERESUMESOFT)(ALCdevice *device);
  371. #ifdef AL_ALEXT_PROTOTYPES
  372. ALC_API void ALC_APIENTRY alcDevicePauseSOFT(ALCdevice *device);
  373. ALC_API void ALC_APIENTRY alcDeviceResumeSOFT(ALCdevice *device);
  374. #endif
  375. #endif
  376. #ifndef AL_EXT_BFORMAT
  377. #define AL_EXT_BFORMAT 1
  378. /* Provides support for B-Format ambisonic buffers (first-order, FuMa scaling
  379. * and layout).
  380. *
  381. * BFORMAT2D_8: Unsigned 8-bit, 3-channel non-periphonic (WXY).
  382. * BFORMAT2D_16: Signed 16-bit, 3-channel non-periphonic (WXY).
  383. * BFORMAT2D_FLOAT32: 32-bit float, 3-channel non-periphonic (WXY).
  384. * BFORMAT3D_8: Unsigned 8-bit, 4-channel periphonic (WXYZ).
  385. * BFORMAT3D_16: Signed 16-bit, 4-channel periphonic (WXYZ).
  386. * BFORMAT3D_FLOAT32: 32-bit float, 4-channel periphonic (WXYZ).
  387. */
  388. #define AL_FORMAT_BFORMAT2D_8 0x20021
  389. #define AL_FORMAT_BFORMAT2D_16 0x20022
  390. #define AL_FORMAT_BFORMAT2D_FLOAT32 0x20023
  391. #define AL_FORMAT_BFORMAT3D_8 0x20031
  392. #define AL_FORMAT_BFORMAT3D_16 0x20032
  393. #define AL_FORMAT_BFORMAT3D_FLOAT32 0x20033
  394. #endif
  395. #ifndef AL_EXT_MULAW_BFORMAT
  396. #define AL_EXT_MULAW_BFORMAT 1
  397. #define AL_FORMAT_BFORMAT2D_MULAW 0x10031
  398. #define AL_FORMAT_BFORMAT3D_MULAW 0x10032
  399. #endif
  400. #ifndef ALC_SOFT_HRTF
  401. #define ALC_SOFT_HRTF 1
  402. #define ALC_HRTF_SOFT 0x1992
  403. #define ALC_DONT_CARE_SOFT 0x0002
  404. #define ALC_HRTF_STATUS_SOFT 0x1993
  405. #define ALC_HRTF_DISABLED_SOFT 0x0000
  406. #define ALC_HRTF_ENABLED_SOFT 0x0001
  407. #define ALC_HRTF_DENIED_SOFT 0x0002
  408. #define ALC_HRTF_REQUIRED_SOFT 0x0003
  409. #define ALC_HRTF_HEADPHONES_DETECTED_SOFT 0x0004
  410. #define ALC_HRTF_UNSUPPORTED_FORMAT_SOFT 0x0005
  411. #define ALC_NUM_HRTF_SPECIFIERS_SOFT 0x1994
  412. #define ALC_HRTF_SPECIFIER_SOFT 0x1995
  413. #define ALC_HRTF_ID_SOFT 0x1996
  414. typedef const ALCchar* (ALC_APIENTRY*LPALCGETSTRINGISOFT)(ALCdevice *device, ALCenum paramName, ALCsizei index);
  415. typedef ALCboolean (ALC_APIENTRY*LPALCRESETDEVICESOFT)(ALCdevice *device, const ALCint *attribs);
  416. #ifdef AL_ALEXT_PROTOTYPES
  417. ALC_API const ALCchar* ALC_APIENTRY alcGetStringiSOFT(ALCdevice *device, ALCenum paramName, ALCsizei index);
  418. ALC_API ALCboolean ALC_APIENTRY alcResetDeviceSOFT(ALCdevice *device, const ALCint *attribs);
  419. #endif
  420. #endif
  421. #ifndef AL_SOFT_gain_clamp_ex
  422. #define AL_SOFT_gain_clamp_ex 1
  423. #define AL_GAIN_LIMIT_SOFT 0x200E
  424. #endif
  425. #ifndef AL_SOFT_source_resampler
  426. #define AL_SOFT_source_resampler
  427. #define AL_NUM_RESAMPLERS_SOFT 0x1210
  428. #define AL_DEFAULT_RESAMPLER_SOFT 0x1211
  429. #define AL_SOURCE_RESAMPLER_SOFT 0x1212
  430. #define AL_RESAMPLER_NAME_SOFT 0x1213
  431. typedef const ALchar* (AL_APIENTRY*LPALGETSTRINGISOFT)(ALenum pname, ALsizei index);
  432. #ifdef AL_ALEXT_PROTOTYPES
  433. AL_API const ALchar* AL_APIENTRY alGetStringiSOFT(ALenum pname, ALsizei index);
  434. #endif
  435. #endif
  436. #ifndef AL_SOFT_source_spatialize
  437. #define AL_SOFT_source_spatialize
  438. #define AL_SOURCE_SPATIALIZE_SOFT 0x1214
  439. #define AL_AUTO_SOFT 0x0002
  440. #endif
  441. #ifndef ALC_SOFT_output_limiter
  442. #define ALC_SOFT_output_limiter
  443. #define ALC_OUTPUT_LIMITER_SOFT 0x199A
  444. #endif
  445. #ifndef ALC_SOFT_device_clock
  446. #define ALC_SOFT_device_clock 1
  447. typedef int64_t ALCint64SOFT;
  448. typedef uint64_t ALCuint64SOFT;
  449. #define ALC_DEVICE_CLOCK_SOFT 0x1600
  450. #define ALC_DEVICE_LATENCY_SOFT 0x1601
  451. #define ALC_DEVICE_CLOCK_LATENCY_SOFT 0x1602
  452. #define AL_SAMPLE_OFFSET_CLOCK_SOFT 0x1202
  453. #define AL_SEC_OFFSET_CLOCK_SOFT 0x1203
  454. typedef void (ALC_APIENTRY*LPALCGETINTEGER64VSOFT)(ALCdevice *device, ALCenum pname, ALsizei size, ALCint64SOFT *values);
  455. #ifdef AL_ALEXT_PROTOTYPES
  456. ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, ALsizei size, ALCint64SOFT *values);
  457. #endif
  458. #endif
  459. #ifdef __cplusplus
  460. }
  461. #endif
  462. #endif