🛠️🐜 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.

646 lines
27 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 and uint64 types */
  24. #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
  25. (defined(__cplusplus) && __cplusplus >= 201103L)
  26. #include <stdint.h>
  27. typedef int64_t _alsoft_int64_t;
  28. typedef uint64_t _alsoft_uint64_t;
  29. #elif defined(_WIN32)
  30. typedef __int64 _alsoft_int64_t;
  31. typedef unsigned __int64 _alsoft_uint64_t;
  32. #else
  33. /* Fallback if nothing above works */
  34. #include <stdint.h>
  35. typedef int64_t _alsoft_int64_t;
  36. typedef uint64_t _alsoft_uint64_t;
  37. #endif
  38. #include "alc.h"
  39. #include "al.h"
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. #ifndef AL_LOKI_IMA_ADPCM_format
  44. #define AL_LOKI_IMA_ADPCM_format 1
  45. #define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x10000
  46. #define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x10001
  47. #endif
  48. #ifndef AL_LOKI_WAVE_format
  49. #define AL_LOKI_WAVE_format 1
  50. #define AL_FORMAT_WAVE_EXT 0x10002
  51. #endif
  52. #ifndef AL_EXT_vorbis
  53. #define AL_EXT_vorbis 1
  54. #define AL_FORMAT_VORBIS_EXT 0x10003
  55. #endif
  56. #ifndef AL_LOKI_quadriphonic
  57. #define AL_LOKI_quadriphonic 1
  58. #define AL_FORMAT_QUAD8_LOKI 0x10004
  59. #define AL_FORMAT_QUAD16_LOKI 0x10005
  60. #endif
  61. #ifndef AL_EXT_float32
  62. #define AL_EXT_float32 1
  63. #define AL_FORMAT_MONO_FLOAT32 0x10010
  64. #define AL_FORMAT_STEREO_FLOAT32 0x10011
  65. #endif
  66. #ifndef AL_EXT_double
  67. #define AL_EXT_double 1
  68. #define AL_FORMAT_MONO_DOUBLE_EXT 0x10012
  69. #define AL_FORMAT_STEREO_DOUBLE_EXT 0x10013
  70. #endif
  71. #ifndef AL_EXT_MULAW
  72. #define AL_EXT_MULAW 1
  73. #define AL_FORMAT_MONO_MULAW_EXT 0x10014
  74. #define AL_FORMAT_STEREO_MULAW_EXT 0x10015
  75. #endif
  76. #ifndef AL_EXT_ALAW
  77. #define AL_EXT_ALAW 1
  78. #define AL_FORMAT_MONO_ALAW_EXT 0x10016
  79. #define AL_FORMAT_STEREO_ALAW_EXT 0x10017
  80. #endif
  81. #ifndef ALC_LOKI_audio_channel
  82. #define ALC_LOKI_audio_channel 1
  83. #define ALC_CHAN_MAIN_LOKI 0x500001
  84. #define ALC_CHAN_PCM_LOKI 0x500002
  85. #define ALC_CHAN_CD_LOKI 0x500003
  86. #endif
  87. #ifndef AL_EXT_MCFORMATS
  88. #define AL_EXT_MCFORMATS 1
  89. /* Provides support for surround sound buffer formats with 8, 16, and 32-bit
  90. * samples.
  91. *
  92. * QUAD8: Unsigned 8-bit, Quadraphonic (Front Left, Front Right, Rear Left,
  93. * Rear Right).
  94. * QUAD16: Signed 16-bit, Quadraphonic.
  95. * QUAD32: 32-bit float, Quadraphonic.
  96. * REAR8: Unsigned 8-bit, Rear Stereo (Rear Left, Rear Right).
  97. * REAR16: Signed 16-bit, Rear Stereo.
  98. * REAR32: 32-bit float, Rear Stereo.
  99. * 51CHN8: Unsigned 8-bit, 5.1 Surround (Front Left, Front Right, Front Center,
  100. * LFE, Side Left, Side Right). Note that some audio systems may label
  101. * 5.1's Side channels as Rear or Surround; they are equivalent for the
  102. * purposes of this extension.
  103. * 51CHN16: Signed 16-bit, 5.1 Surround.
  104. * 51CHN32: 32-bit float, 5.1 Surround.
  105. * 61CHN8: Unsigned 8-bit, 6.1 Surround (Front Left, Front Right, Front Center,
  106. * LFE, Rear Center, Side Left, Side Right).
  107. * 61CHN16: Signed 16-bit, 6.1 Surround.
  108. * 61CHN32: 32-bit float, 6.1 Surround.
  109. * 71CHN8: Unsigned 8-bit, 7.1 Surround (Front Left, Front Right, Front Center,
  110. * LFE, Rear Left, Rear Right, Side Left, Side Right).
  111. * 71CHN16: Signed 16-bit, 7.1 Surround.
  112. * 71CHN32: 32-bit float, 7.1 Surround.
  113. */
  114. #define AL_FORMAT_QUAD8 0x1204
  115. #define AL_FORMAT_QUAD16 0x1205
  116. #define AL_FORMAT_QUAD32 0x1206
  117. #define AL_FORMAT_REAR8 0x1207
  118. #define AL_FORMAT_REAR16 0x1208
  119. #define AL_FORMAT_REAR32 0x1209
  120. #define AL_FORMAT_51CHN8 0x120A
  121. #define AL_FORMAT_51CHN16 0x120B
  122. #define AL_FORMAT_51CHN32 0x120C
  123. #define AL_FORMAT_61CHN8 0x120D
  124. #define AL_FORMAT_61CHN16 0x120E
  125. #define AL_FORMAT_61CHN32 0x120F
  126. #define AL_FORMAT_71CHN8 0x1210
  127. #define AL_FORMAT_71CHN16 0x1211
  128. #define AL_FORMAT_71CHN32 0x1212
  129. #endif
  130. #ifndef AL_EXT_MULAW_MCFORMATS
  131. #define AL_EXT_MULAW_MCFORMATS 1
  132. #define AL_FORMAT_MONO_MULAW 0x10014
  133. #define AL_FORMAT_STEREO_MULAW 0x10015
  134. #define AL_FORMAT_QUAD_MULAW 0x10021
  135. #define AL_FORMAT_REAR_MULAW 0x10022
  136. #define AL_FORMAT_51CHN_MULAW 0x10023
  137. #define AL_FORMAT_61CHN_MULAW 0x10024
  138. #define AL_FORMAT_71CHN_MULAW 0x10025
  139. #endif
  140. #ifndef AL_EXT_IMA4
  141. #define AL_EXT_IMA4 1
  142. #define AL_FORMAT_MONO_IMA4 0x1300
  143. #define AL_FORMAT_STEREO_IMA4 0x1301
  144. #endif
  145. #ifndef AL_EXT_STATIC_BUFFER
  146. #define AL_EXT_STATIC_BUFFER 1
  147. typedef void (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei);
  148. #ifdef AL_ALEXT_PROTOTYPES
  149. AL_API void AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq);
  150. #endif
  151. #endif
  152. #ifndef ALC_EXT_EFX
  153. #define ALC_EXT_EFX 1
  154. #include "efx.h"
  155. #endif
  156. #ifndef ALC_EXT_disconnect
  157. #define ALC_EXT_disconnect 1
  158. #define ALC_CONNECTED 0x313
  159. #endif
  160. #ifndef ALC_EXT_thread_local_context
  161. #define ALC_EXT_thread_local_context 1
  162. typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context);
  163. typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void);
  164. #ifdef AL_ALEXT_PROTOTYPES
  165. ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context);
  166. ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void);
  167. #endif
  168. #endif
  169. #ifndef AL_EXT_source_distance_model
  170. #define AL_EXT_source_distance_model 1
  171. #define AL_SOURCE_DISTANCE_MODEL 0x200
  172. #endif
  173. #ifndef AL_SOFT_buffer_sub_data
  174. #define AL_SOFT_buffer_sub_data 1
  175. #define AL_BYTE_RW_OFFSETS_SOFT 0x1031
  176. #define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032
  177. typedef void (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei);
  178. #ifdef AL_ALEXT_PROTOTYPES
  179. AL_API void AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);
  180. #endif
  181. #endif
  182. #ifndef AL_SOFT_loop_points
  183. #define AL_SOFT_loop_points 1
  184. #define AL_LOOP_POINTS_SOFT 0x2015
  185. #endif
  186. #ifndef AL_EXT_FOLDBACK
  187. #define AL_EXT_FOLDBACK 1
  188. #define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK"
  189. #define AL_FOLDBACK_EVENT_BLOCK 0x4112
  190. #define AL_FOLDBACK_EVENT_START 0x4111
  191. #define AL_FOLDBACK_EVENT_STOP 0x4113
  192. #define AL_FOLDBACK_MODE_MONO 0x4101
  193. #define AL_FOLDBACK_MODE_STEREO 0x4102
  194. typedef void (AL_APIENTRY*LPALFOLDBACKCALLBACK)(ALenum,ALsizei);
  195. typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTART)(ALenum,ALsizei,ALsizei,ALfloat*,LPALFOLDBACKCALLBACK);
  196. typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTOP)(void);
  197. #ifdef AL_ALEXT_PROTOTYPES
  198. AL_API void AL_APIENTRY alRequestFoldbackStart(ALenum mode,ALsizei count,ALsizei length,ALfloat *mem,LPALFOLDBACKCALLBACK callback);
  199. AL_API void AL_APIENTRY alRequestFoldbackStop(void);
  200. #endif
  201. #endif
  202. #ifndef ALC_EXT_DEDICATED
  203. #define ALC_EXT_DEDICATED 1
  204. #define AL_DEDICATED_GAIN 0x0001
  205. #define AL_EFFECT_DEDICATED_DIALOGUE 0x9001
  206. #define AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT 0x9000
  207. #endif
  208. #ifndef AL_SOFT_buffer_samples
  209. #define AL_SOFT_buffer_samples 1
  210. /* Channel configurations */
  211. #define AL_MONO_SOFT 0x1500
  212. #define AL_STEREO_SOFT 0x1501
  213. #define AL_REAR_SOFT 0x1502
  214. #define AL_QUAD_SOFT 0x1503
  215. #define AL_5POINT1_SOFT 0x1504
  216. #define AL_6POINT1_SOFT 0x1505
  217. #define AL_7POINT1_SOFT 0x1506
  218. /* Sample types */
  219. #define AL_BYTE_SOFT 0x1400
  220. #define AL_UNSIGNED_BYTE_SOFT 0x1401
  221. #define AL_SHORT_SOFT 0x1402
  222. #define AL_UNSIGNED_SHORT_SOFT 0x1403
  223. #define AL_INT_SOFT 0x1404
  224. #define AL_UNSIGNED_INT_SOFT 0x1405
  225. #define AL_FLOAT_SOFT 0x1406
  226. #define AL_DOUBLE_SOFT 0x1407
  227. #define AL_BYTE3_SOFT 0x1408
  228. #define AL_UNSIGNED_BYTE3_SOFT 0x1409
  229. /* Storage formats */
  230. #define AL_MONO8_SOFT 0x1100
  231. #define AL_MONO16_SOFT 0x1101
  232. #define AL_MONO32F_SOFT 0x10010
  233. #define AL_STEREO8_SOFT 0x1102
  234. #define AL_STEREO16_SOFT 0x1103
  235. #define AL_STEREO32F_SOFT 0x10011
  236. #define AL_QUAD8_SOFT 0x1204
  237. #define AL_QUAD16_SOFT 0x1205
  238. #define AL_QUAD32F_SOFT 0x1206
  239. #define AL_REAR8_SOFT 0x1207
  240. #define AL_REAR16_SOFT 0x1208
  241. #define AL_REAR32F_SOFT 0x1209
  242. #define AL_5POINT1_8_SOFT 0x120A
  243. #define AL_5POINT1_16_SOFT 0x120B
  244. #define AL_5POINT1_32F_SOFT 0x120C
  245. #define AL_6POINT1_8_SOFT 0x120D
  246. #define AL_6POINT1_16_SOFT 0x120E
  247. #define AL_6POINT1_32F_SOFT 0x120F
  248. #define AL_7POINT1_8_SOFT 0x1210
  249. #define AL_7POINT1_16_SOFT 0x1211
  250. #define AL_7POINT1_32F_SOFT 0x1212
  251. /* Buffer attributes */
  252. #define AL_INTERNAL_FORMAT_SOFT 0x2008
  253. #define AL_BYTE_LENGTH_SOFT 0x2009
  254. #define AL_SAMPLE_LENGTH_SOFT 0x200A
  255. #define AL_SEC_LENGTH_SOFT 0x200B
  256. typedef void (AL_APIENTRY*LPALBUFFERSAMPLESSOFT)(ALuint,ALuint,ALenum,ALsizei,ALenum,ALenum,const ALvoid*);
  257. typedef void (AL_APIENTRY*LPALBUFFERSUBSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,const ALvoid*);
  258. typedef void (AL_APIENTRY*LPALGETBUFFERSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,ALvoid*);
  259. typedef ALboolean (AL_APIENTRY*LPALISBUFFERFORMATSUPPORTEDSOFT)(ALenum);
  260. #ifdef AL_ALEXT_PROTOTYPES
  261. AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer, ALuint samplerate, ALenum internalformat, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
  262. AL_API void AL_APIENTRY alBufferSubSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data);
  263. AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, ALvoid *data);
  264. AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format);
  265. #endif
  266. #endif
  267. #ifndef AL_SOFT_direct_channels
  268. #define AL_SOFT_direct_channels 1
  269. #define AL_DIRECT_CHANNELS_SOFT 0x1033
  270. #endif
  271. #ifndef ALC_SOFT_loopback
  272. #define ALC_SOFT_loopback 1
  273. #define ALC_FORMAT_CHANNELS_SOFT 0x1990
  274. #define ALC_FORMAT_TYPE_SOFT 0x1991
  275. /* Sample types */
  276. #define ALC_BYTE_SOFT 0x1400
  277. #define ALC_UNSIGNED_BYTE_SOFT 0x1401
  278. #define ALC_SHORT_SOFT 0x1402
  279. #define ALC_UNSIGNED_SHORT_SOFT 0x1403
  280. #define ALC_INT_SOFT 0x1404
  281. #define ALC_UNSIGNED_INT_SOFT 0x1405
  282. #define ALC_FLOAT_SOFT 0x1406
  283. /* Channel configurations */
  284. #define ALC_MONO_SOFT 0x1500
  285. #define ALC_STEREO_SOFT 0x1501
  286. #define ALC_QUAD_SOFT 0x1503
  287. #define ALC_5POINT1_SOFT 0x1504
  288. #define ALC_6POINT1_SOFT 0x1505
  289. #define ALC_7POINT1_SOFT 0x1506
  290. typedef ALCdevice* (ALC_APIENTRY*LPALCLOOPBACKOPENDEVICESOFT)(const ALCchar*);
  291. typedef ALCboolean (ALC_APIENTRY*LPALCISRENDERFORMATSUPPORTEDSOFT)(ALCdevice*,ALCsizei,ALCenum,ALCenum);
  292. typedef void (ALC_APIENTRY*LPALCRENDERSAMPLESSOFT)(ALCdevice*,ALCvoid*,ALCsizei);
  293. #ifdef AL_ALEXT_PROTOTYPES
  294. ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceName);
  295. ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT(ALCdevice *device, ALCsizei freq, ALCenum channels, ALCenum type);
  296. ALC_API void ALC_APIENTRY alcRenderSamplesSOFT(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
  297. #endif
  298. #endif
  299. #ifndef AL_EXT_STEREO_ANGLES
  300. #define AL_EXT_STEREO_ANGLES 1
  301. #define AL_STEREO_ANGLES 0x1030
  302. #endif
  303. #ifndef AL_EXT_SOURCE_RADIUS
  304. #define AL_EXT_SOURCE_RADIUS 1
  305. #define AL_SOURCE_RADIUS 0x1031
  306. #endif
  307. #ifndef AL_SOFT_source_latency
  308. #define AL_SOFT_source_latency 1
  309. #define AL_SAMPLE_OFFSET_LATENCY_SOFT 0x1200
  310. #define AL_SEC_OFFSET_LATENCY_SOFT 0x1201
  311. typedef _alsoft_int64_t ALint64SOFT;
  312. typedef _alsoft_uint64_t ALuint64SOFT;
  313. typedef void (AL_APIENTRY*LPALSOURCEDSOFT)(ALuint,ALenum,ALdouble);
  314. typedef void (AL_APIENTRY*LPALSOURCE3DSOFT)(ALuint,ALenum,ALdouble,ALdouble,ALdouble);
  315. typedef void (AL_APIENTRY*LPALSOURCEDVSOFT)(ALuint,ALenum,const ALdouble*);
  316. typedef void (AL_APIENTRY*LPALGETSOURCEDSOFT)(ALuint,ALenum,ALdouble*);
  317. typedef void (AL_APIENTRY*LPALGETSOURCE3DSOFT)(ALuint,ALenum,ALdouble*,ALdouble*,ALdouble*);
  318. typedef void (AL_APIENTRY*LPALGETSOURCEDVSOFT)(ALuint,ALenum,ALdouble*);
  319. typedef void (AL_APIENTRY*LPALSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT);
  320. typedef void (AL_APIENTRY*LPALSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT,ALint64SOFT,ALint64SOFT);
  321. typedef void (AL_APIENTRY*LPALSOURCEI64VSOFT)(ALuint,ALenum,const ALint64SOFT*);
  322. typedef void (AL_APIENTRY*LPALGETSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT*);
  323. typedef void (AL_APIENTRY*LPALGETSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT*,ALint64SOFT*,ALint64SOFT*);
  324. typedef void (AL_APIENTRY*LPALGETSOURCEI64VSOFT)(ALuint,ALenum,ALint64SOFT*);
  325. #ifdef AL_ALEXT_PROTOTYPES
  326. AL_API void AL_APIENTRY alSourcedSOFT(ALuint source, ALenum param, ALdouble value);
  327. AL_API void AL_APIENTRY alSource3dSOFT(ALuint source, ALenum param, ALdouble value1, ALdouble value2, ALdouble value3);
  328. AL_API void AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdouble *values);
  329. AL_API void AL_APIENTRY alGetSourcedSOFT(ALuint source, ALenum param, ALdouble *value);
  330. AL_API void AL_APIENTRY alGetSource3dSOFT(ALuint source, ALenum param, ALdouble *value1, ALdouble *value2, ALdouble *value3);
  331. AL_API void AL_APIENTRY alGetSourcedvSOFT(ALuint source, ALenum param, ALdouble *values);
  332. AL_API void AL_APIENTRY alSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT value);
  333. AL_API void AL_APIENTRY alSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT value1, ALint64SOFT value2, ALint64SOFT value3);
  334. AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALint64SOFT *values);
  335. AL_API void AL_APIENTRY alGetSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT *value);
  336. AL_API void AL_APIENTRY alGetSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT *value1, ALint64SOFT *value2, ALint64SOFT *value3);
  337. AL_API void AL_APIENTRY alGetSourcei64vSOFT(ALuint source, ALenum param, ALint64SOFT *values);
  338. #endif
  339. #endif
  340. #ifndef ALC_EXT_DEFAULT_FILTER_ORDER
  341. #define ALC_EXT_DEFAULT_FILTER_ORDER 1
  342. #define ALC_DEFAULT_FILTER_ORDER 0x1100
  343. #endif
  344. #ifndef AL_SOFT_deferred_updates
  345. #define AL_SOFT_deferred_updates 1
  346. #define AL_DEFERRED_UPDATES_SOFT 0xC002
  347. typedef void (AL_APIENTRY*LPALDEFERUPDATESSOFT)(void);
  348. typedef void (AL_APIENTRY*LPALPROCESSUPDATESSOFT)(void);
  349. #ifdef AL_ALEXT_PROTOTYPES
  350. AL_API void AL_APIENTRY alDeferUpdatesSOFT(void);
  351. AL_API void AL_APIENTRY alProcessUpdatesSOFT(void);
  352. #endif
  353. #endif
  354. #ifndef AL_SOFT_block_alignment
  355. #define AL_SOFT_block_alignment 1
  356. #define AL_UNPACK_BLOCK_ALIGNMENT_SOFT 0x200C
  357. #define AL_PACK_BLOCK_ALIGNMENT_SOFT 0x200D
  358. #endif
  359. #ifndef AL_SOFT_MSADPCM
  360. #define AL_SOFT_MSADPCM 1
  361. #define AL_FORMAT_MONO_MSADPCM_SOFT 0x1302
  362. #define AL_FORMAT_STEREO_MSADPCM_SOFT 0x1303
  363. #endif
  364. #ifndef AL_SOFT_source_length
  365. #define AL_SOFT_source_length 1
  366. /*#define AL_BYTE_LENGTH_SOFT 0x2009*/
  367. /*#define AL_SAMPLE_LENGTH_SOFT 0x200A*/
  368. /*#define AL_SEC_LENGTH_SOFT 0x200B*/
  369. #endif
  370. #ifndef ALC_SOFT_pause_device
  371. #define ALC_SOFT_pause_device 1
  372. typedef void (ALC_APIENTRY*LPALCDEVICEPAUSESOFT)(ALCdevice *device);
  373. typedef void (ALC_APIENTRY*LPALCDEVICERESUMESOFT)(ALCdevice *device);
  374. #ifdef AL_ALEXT_PROTOTYPES
  375. ALC_API void ALC_APIENTRY alcDevicePauseSOFT(ALCdevice *device);
  376. ALC_API void ALC_APIENTRY alcDeviceResumeSOFT(ALCdevice *device);
  377. #endif
  378. #endif
  379. #ifndef AL_EXT_BFORMAT
  380. #define AL_EXT_BFORMAT 1
  381. /* Provides support for B-Format ambisonic buffers (first-order, FuMa scaling
  382. * and layout).
  383. *
  384. * BFORMAT2D_8: Unsigned 8-bit, 3-channel non-periphonic (WXY).
  385. * BFORMAT2D_16: Signed 16-bit, 3-channel non-periphonic (WXY).
  386. * BFORMAT2D_FLOAT32: 32-bit float, 3-channel non-periphonic (WXY).
  387. * BFORMAT3D_8: Unsigned 8-bit, 4-channel periphonic (WXYZ).
  388. * BFORMAT3D_16: Signed 16-bit, 4-channel periphonic (WXYZ).
  389. * BFORMAT3D_FLOAT32: 32-bit float, 4-channel periphonic (WXYZ).
  390. */
  391. #define AL_FORMAT_BFORMAT2D_8 0x20021
  392. #define AL_FORMAT_BFORMAT2D_16 0x20022
  393. #define AL_FORMAT_BFORMAT2D_FLOAT32 0x20023
  394. #define AL_FORMAT_BFORMAT3D_8 0x20031
  395. #define AL_FORMAT_BFORMAT3D_16 0x20032
  396. #define AL_FORMAT_BFORMAT3D_FLOAT32 0x20033
  397. #endif
  398. #ifndef AL_EXT_MULAW_BFORMAT
  399. #define AL_EXT_MULAW_BFORMAT 1
  400. #define AL_FORMAT_BFORMAT2D_MULAW 0x10031
  401. #define AL_FORMAT_BFORMAT3D_MULAW 0x10032
  402. #endif
  403. #ifndef ALC_SOFT_HRTF
  404. #define ALC_SOFT_HRTF 1
  405. #define ALC_HRTF_SOFT 0x1992
  406. #define ALC_DONT_CARE_SOFT 0x0002
  407. #define ALC_HRTF_STATUS_SOFT 0x1993
  408. #define ALC_HRTF_DISABLED_SOFT 0x0000
  409. #define ALC_HRTF_ENABLED_SOFT 0x0001
  410. #define ALC_HRTF_DENIED_SOFT 0x0002
  411. #define ALC_HRTF_REQUIRED_SOFT 0x0003
  412. #define ALC_HRTF_HEADPHONES_DETECTED_SOFT 0x0004
  413. #define ALC_HRTF_UNSUPPORTED_FORMAT_SOFT 0x0005
  414. #define ALC_NUM_HRTF_SPECIFIERS_SOFT 0x1994
  415. #define ALC_HRTF_SPECIFIER_SOFT 0x1995
  416. #define ALC_HRTF_ID_SOFT 0x1996
  417. typedef const ALCchar* (ALC_APIENTRY*LPALCGETSTRINGISOFT)(ALCdevice *device, ALCenum paramName, ALCsizei index);
  418. typedef ALCboolean (ALC_APIENTRY*LPALCRESETDEVICESOFT)(ALCdevice *device, const ALCint *attribs);
  419. #ifdef AL_ALEXT_PROTOTYPES
  420. ALC_API const ALCchar* ALC_APIENTRY alcGetStringiSOFT(ALCdevice *device, ALCenum paramName, ALCsizei index);
  421. ALC_API ALCboolean ALC_APIENTRY alcResetDeviceSOFT(ALCdevice *device, const ALCint *attribs);
  422. #endif
  423. #endif
  424. #ifndef AL_SOFT_gain_clamp_ex
  425. #define AL_SOFT_gain_clamp_ex 1
  426. #define AL_GAIN_LIMIT_SOFT 0x200E
  427. #endif
  428. #ifndef AL_SOFT_source_resampler
  429. #define AL_SOFT_source_resampler
  430. #define AL_NUM_RESAMPLERS_SOFT 0x1210
  431. #define AL_DEFAULT_RESAMPLER_SOFT 0x1211
  432. #define AL_SOURCE_RESAMPLER_SOFT 0x1212
  433. #define AL_RESAMPLER_NAME_SOFT 0x1213
  434. typedef const ALchar* (AL_APIENTRY*LPALGETSTRINGISOFT)(ALenum pname, ALsizei index);
  435. #ifdef AL_ALEXT_PROTOTYPES
  436. AL_API const ALchar* AL_APIENTRY alGetStringiSOFT(ALenum pname, ALsizei index);
  437. #endif
  438. #endif
  439. #ifndef AL_SOFT_source_spatialize
  440. #define AL_SOFT_source_spatialize
  441. #define AL_SOURCE_SPATIALIZE_SOFT 0x1214
  442. #define AL_AUTO_SOFT 0x0002
  443. #endif
  444. #ifndef ALC_SOFT_output_limiter
  445. #define ALC_SOFT_output_limiter
  446. #define ALC_OUTPUT_LIMITER_SOFT 0x199A
  447. #endif
  448. #ifndef ALC_SOFT_device_clock
  449. #define ALC_SOFT_device_clock 1
  450. typedef _alsoft_int64_t ALCint64SOFT;
  451. typedef _alsoft_uint64_t ALCuint64SOFT;
  452. #define ALC_DEVICE_CLOCK_SOFT 0x1600
  453. #define ALC_DEVICE_LATENCY_SOFT 0x1601
  454. #define ALC_DEVICE_CLOCK_LATENCY_SOFT 0x1602
  455. #define AL_SAMPLE_OFFSET_CLOCK_SOFT 0x1202
  456. #define AL_SEC_OFFSET_CLOCK_SOFT 0x1203
  457. typedef void (ALC_APIENTRY*LPALCGETINTEGER64VSOFT)(ALCdevice *device, ALCenum pname, ALsizei size, ALCint64SOFT *values);
  458. #ifdef AL_ALEXT_PROTOTYPES
  459. ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, ALsizei size, ALCint64SOFT *values);
  460. #endif
  461. #endif
  462. #ifndef AL_SOFT_direct_channels_remix
  463. #define AL_SOFT_direct_channels_remix 1
  464. #define AL_DROP_UNMATCHED_SOFT 0x0001
  465. #define AL_REMIX_UNMATCHED_SOFT 0x0002
  466. #endif
  467. #ifndef AL_SOFT_bformat_ex
  468. #define AL_SOFT_bformat_ex 1
  469. #define AL_AMBISONIC_LAYOUT_SOFT 0x1997
  470. #define AL_AMBISONIC_SCALING_SOFT 0x1998
  471. /* Ambisonic layouts */
  472. #define AL_FUMA_SOFT 0x0000
  473. #define AL_ACN_SOFT 0x0001
  474. /* Ambisonic scalings (normalization) */
  475. /*#define AL_FUMA_SOFT*/
  476. #define AL_SN3D_SOFT 0x0001
  477. #define AL_N3D_SOFT 0x0002
  478. #endif
  479. #ifndef ALC_SOFT_loopback_bformat
  480. #define ALC_SOFT_loopback_bformat 1
  481. #define ALC_AMBISONIC_LAYOUT_SOFT 0x1997
  482. #define ALC_AMBISONIC_SCALING_SOFT 0x1998
  483. #define ALC_AMBISONIC_ORDER_SOFT 0x1999
  484. #define ALC_MAX_AMBISONIC_ORDER_SOFT 0x199B
  485. #define ALC_BFORMAT3D_SOFT 0x1507
  486. /* Ambisonic layouts */
  487. #define ALC_FUMA_SOFT 0x0000
  488. #define ALC_ACN_SOFT 0x0001
  489. /* Ambisonic scalings (normalization) */
  490. /*#define ALC_FUMA_SOFT*/
  491. #define ALC_SN3D_SOFT 0x0001
  492. #define ALC_N3D_SOFT 0x0002
  493. #endif
  494. #ifndef AL_SOFT_effect_target
  495. #define AL_SOFT_effect_target
  496. #define AL_EFFECTSLOT_TARGET_SOFT 0x199C
  497. #endif
  498. #ifndef AL_SOFT_events
  499. #define AL_SOFT_events 1
  500. #define AL_EVENT_CALLBACK_FUNCTION_SOFT 0x19A2
  501. #define AL_EVENT_CALLBACK_USER_PARAM_SOFT 0x19A3
  502. #define AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT 0x19A4
  503. #define AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT 0x19A5
  504. #define AL_EVENT_TYPE_DISCONNECTED_SOFT 0x19A6
  505. typedef void (AL_APIENTRY*ALEVENTPROCSOFT)(ALenum eventType, ALuint object, ALuint param,
  506. ALsizei length, const ALchar *message,
  507. void *userParam);
  508. typedef void (AL_APIENTRY*LPALEVENTCONTROLSOFT)(ALsizei count, const ALenum *types, ALboolean enable);
  509. typedef void (AL_APIENTRY*LPALEVENTCALLBACKSOFT)(ALEVENTPROCSOFT callback, void *userParam);
  510. typedef void* (AL_APIENTRY*LPALGETPOINTERSOFT)(ALenum pname);
  511. typedef void (AL_APIENTRY*LPALGETPOINTERVSOFT)(ALenum pname, void **values);
  512. #ifdef AL_ALEXT_PROTOTYPES
  513. AL_API void AL_APIENTRY alEventControlSOFT(ALsizei count, const ALenum *types, ALboolean enable);
  514. AL_API void AL_APIENTRY alEventCallbackSOFT(ALEVENTPROCSOFT callback, void *userParam);
  515. AL_API void* AL_APIENTRY alGetPointerSOFT(ALenum pname);
  516. AL_API void AL_APIENTRY alGetPointervSOFT(ALenum pname, void **values);
  517. #endif
  518. #endif
  519. #ifndef ALC_SOFT_reopen_device
  520. #define ALC_SOFT_reopen_device
  521. typedef ALCboolean (ALC_APIENTRY*LPALCREOPENDEVICESOFT)(ALCdevice *device,
  522. const ALCchar *deviceName, const ALCint *attribs);
  523. #ifdef AL_ALEXT_PROTOTYPES
  524. ALCboolean ALC_APIENTRY alcReopenDeviceSOFT(ALCdevice *device, const ALCchar *deviceName,
  525. const ALCint *attribs);
  526. #endif
  527. #endif
  528. #ifndef AL_SOFT_callback_buffer
  529. #define AL_SOFT_callback_buffer
  530. #define AL_BUFFER_CALLBACK_FUNCTION_SOFT 0x19A0
  531. #define AL_BUFFER_CALLBACK_USER_PARAM_SOFT 0x19A1
  532. typedef ALsizei (AL_APIENTRY*ALBUFFERCALLBACKTYPESOFT)(ALvoid *userptr, ALvoid *sampledata, ALsizei numbytes);
  533. typedef void (AL_APIENTRY*LPALBUFFERCALLBACKSOFT)(ALuint buffer, ALenum format, ALsizei freq, ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr);
  534. typedef void (AL_APIENTRY*LPALGETBUFFERPTRSOFT)(ALuint buffer, ALenum param, ALvoid **value);
  535. typedef void (AL_APIENTRY*LPALGETBUFFER3PTRSOFT)(ALuint buffer, ALenum param, ALvoid **value1, ALvoid **value2, ALvoid **value3);
  536. typedef void (AL_APIENTRY*LPALGETBUFFERPTRVSOFT)(ALuint buffer, ALenum param, ALvoid **values);
  537. #ifdef AL_ALEXT_PROTOTYPES
  538. AL_API void AL_APIENTRY alBufferCallbackSOFT(ALuint buffer, ALenum format, ALsizei freq, ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr);
  539. AL_API void AL_APIENTRY alGetBufferPtrSOFT(ALuint buffer, ALenum param, ALvoid **ptr);
  540. AL_API void AL_APIENTRY alGetBuffer3PtrSOFT(ALuint buffer, ALenum param, ALvoid **ptr0, ALvoid **ptr1, ALvoid **ptr2);
  541. AL_API void AL_APIENTRY alGetBufferPtrvSOFT(ALuint buffer, ALenum param, ALvoid **ptr);
  542. #endif
  543. #endif
  544. #ifndef AL_SOFT_UHJ
  545. #define AL_SOFT_UHJ
  546. #define AL_FORMAT_UHJ2CHN8_SOFT 0x19A2
  547. #define AL_FORMAT_UHJ2CHN16_SOFT 0x19A3
  548. #define AL_FORMAT_UHJ2CHN_FLOAT32_SOFT 0x19A4
  549. #define AL_FORMAT_UHJ3CHN8_SOFT 0x19A5
  550. #define AL_FORMAT_UHJ3CHN16_SOFT 0x19A6
  551. #define AL_FORMAT_UHJ3CHN_FLOAT32_SOFT 0x19A7
  552. #define AL_FORMAT_UHJ4CHN8_SOFT 0x19A8
  553. #define AL_FORMAT_UHJ4CHN16_SOFT 0x19A9
  554. #define AL_FORMAT_UHJ4CHN_FLOAT32_SOFT 0x19AA
  555. #define AL_STEREO_MODE_SOFT 0x19B0
  556. #define AL_NORMAL_SOFT 0x0000
  557. #define AL_SUPER_STEREO_SOFT 0x0001
  558. #define AL_SUPER_STEREO_WIDTH_SOFT 0x19B1
  559. #endif
  560. #ifndef ALC_SOFT_output_mode
  561. #define ALC_SOFT_output_mode
  562. #define ALC_OUTPUT_MODE_SOFT 0x19AC
  563. #define ALC_ANY_SOFT 0x19AD
  564. /*#define ALC_MONO_SOFT 0x1500*/
  565. /*#define ALC_STEREO_SOFT 0x1501*/
  566. #define ALC_STEREO_BASIC_SOFT 0x19AE
  567. #define ALC_STEREO_UHJ_SOFT 0x19AF
  568. #define ALC_STEREO_HRTF_SOFT 0x19B2
  569. /*#define ALC_QUAD_SOFT 0x1503*/
  570. #define ALC_SURROUND_5_1_SOFT 0x1504
  571. #define ALC_SURROUND_6_1_SOFT 0x1505
  572. #define ALC_SURROUND_7_1_SOFT 0x1506
  573. #endif
  574. #ifdef __cplusplus
  575. }
  576. #endif
  577. #endif