alext.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, 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. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #ifndef AL_LOKI_IMA_ADPCM_format
  27. #define AL_LOKI_IMA_ADPCM_format 1
  28. #define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x10000
  29. #define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x10001
  30. #endif
  31. #ifndef AL_LOKI_WAVE_format
  32. #define AL_LOKI_WAVE_format 1
  33. #define AL_FORMAT_WAVE_EXT 0x10002
  34. #endif
  35. #ifndef AL_EXT_vorbis
  36. #define AL_EXT_vorbis 1
  37. #define AL_FORMAT_VORBIS_EXT 0x10003
  38. #endif
  39. #ifndef AL_LOKI_quadriphonic
  40. #define AL_LOKI_quadriphonic 1
  41. #define AL_FORMAT_QUAD8_LOKI 0x10004
  42. #define AL_FORMAT_QUAD16_LOKI 0x10005
  43. #endif
  44. #ifndef AL_EXT_float32
  45. #define AL_EXT_float32 1
  46. #define AL_FORMAT_MONO_FLOAT32 0x10010
  47. #define AL_FORMAT_STEREO_FLOAT32 0x10011
  48. #endif
  49. #ifndef AL_EXT_double
  50. #define AL_EXT_double 1
  51. #define AL_FORMAT_MONO_DOUBLE_EXT 0x10012
  52. #define AL_FORMAT_STEREO_DOUBLE_EXT 0x10013
  53. #endif
  54. #ifndef ALC_LOKI_audio_channel
  55. #define ALC_LOKI_audio_channel 1
  56. #define ALC_CHAN_MAIN_LOKI 0x500001
  57. #define ALC_CHAN_PCM_LOKI 0x500002
  58. #define ALC_CHAN_CD_LOKI 0x500003
  59. #endif
  60. #ifndef ALC_ENUMERATE_ALL_EXT
  61. #define ALC_ENUMERATE_ALL_EXT 1
  62. #define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
  63. #define ALC_ALL_DEVICES_SPECIFIER 0x1013
  64. #endif
  65. #ifndef AL_EXT_MCFORMATS
  66. #define AL_EXT_MCFORMATS 1
  67. #define AL_FORMAT_QUAD8 0x1204
  68. #define AL_FORMAT_QUAD16 0x1205
  69. #define AL_FORMAT_QUAD32 0x1206
  70. #define AL_FORMAT_REAR8 0x1207
  71. #define AL_FORMAT_REAR16 0x1208
  72. #define AL_FORMAT_REAR32 0x1209
  73. #define AL_FORMAT_51CHN8 0x120A
  74. #define AL_FORMAT_51CHN16 0x120B
  75. #define AL_FORMAT_51CHN32 0x120C
  76. #define AL_FORMAT_61CHN8 0x120D
  77. #define AL_FORMAT_61CHN16 0x120E
  78. #define AL_FORMAT_61CHN32 0x120F
  79. #define AL_FORMAT_71CHN8 0x1210
  80. #define AL_FORMAT_71CHN16 0x1211
  81. #define AL_FORMAT_71CHN32 0x1212
  82. #endif
  83. #ifndef AL_EXT_MULAW_MCFORMATS
  84. #define AL_EXT_MULAW_MCFORMATS 1
  85. #define AL_FORMAT_MONO_MULAW 0x10014
  86. #define AL_FORMAT_STEREO_MULAW 0x10015
  87. #define AL_FORMAT_QUAD_MULAW 0x10021
  88. #define AL_FORMAT_REAR_MULAW 0x10022
  89. #define AL_FORMAT_51CHN_MULAW 0x10023
  90. #define AL_FORMAT_61CHN_MULAW 0x10024
  91. #define AL_FORMAT_71CHN_MULAW 0x10025
  92. #endif
  93. #ifndef AL_EXT_IMA4
  94. #define AL_EXT_IMA4 1
  95. #define AL_FORMAT_MONO_IMA4 0x1300
  96. #define AL_FORMAT_STEREO_IMA4 0x1301
  97. #endif
  98. #ifndef AL_EXT_STATIC_BUFFER
  99. #define AL_EXT_STATIC_BUFFER 1
  100. typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei);
  101. #ifdef AL_ALEXT_PROTOTYPES
  102. AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq);
  103. #endif
  104. #endif
  105. #ifndef ALC_EXT_EFX
  106. #define ALC_EXT_EFX 1
  107. #include "efx.h"
  108. #endif
  109. #ifndef ALC_EXT_disconnect
  110. #define ALC_EXT_disconnect 1
  111. #define ALC_CONNECTED 0x313
  112. #endif
  113. #ifndef ALC_EXT_thread_local_context
  114. #define ALC_EXT_thread_local_context 1
  115. typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context);
  116. typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void);
  117. #ifdef AL_ALEXT_PROTOTYPES
  118. ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context);
  119. ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void);
  120. #endif
  121. #endif
  122. #ifndef AL_EXT_source_distance_model
  123. #define AL_EXT_source_distance_model 1
  124. #define AL_SOURCE_DISTANCE_MODEL 0x200
  125. #endif
  126. #ifdef __cplusplus
  127. }
  128. #endif
  129. #endif