al.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. #ifndef OPENAL_AL_H__
  2. #define OPENAL_AL_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define AL_BITS 0x2002
  7. #define AL_BUFFER 0x1009
  8. #define AL_BUFFERS_PROCESSED 0x1016
  9. #define AL_BUFFERS_QUEUED 0x1015
  10. #define AL_BYTE_OFFSET 0x1026
  11. #define AL_CHANNELS 0x2003
  12. #define AL_CONE_INNER_ANGLE 0x1001
  13. #define AL_CONE_OUTER_ANGLE 0x1002
  14. #define AL_CONE_OUTER_GAIN 0x1022
  15. #define AL_DIRECTION 0x1005
  16. #define AL_DISTANCE_MODEL 0xD000
  17. #define AL_DOPPLER_FACTOR 0xC000
  18. #define AL_DOPPLER_VELOCITY 0xC001
  19. #define AL_EXPONENT_DISTANCE 0xD005
  20. #define AL_EXPONENT_DISTANCE_CLAMPED 0xD006
  21. #define AL_EXTENSIONS 0xB004
  22. #define AL_FALSE 0
  23. #define AL_FORMAT_MONO16 0x1101
  24. #define AL_FORMAT_MONO8 0x1100
  25. #define AL_FORMAT_STEREO16 0x1103
  26. #define AL_FORMAT_STEREO8 0x1102
  27. #define AL_FREQUENCY 0x2001
  28. #define AL_GAIN 0x100A
  29. #define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION
  30. #define AL_ILLEGAL_ENUM AL_INVALID_ENUM
  31. #define AL_INITIAL 0x1011
  32. #define AL_INVALID (-1)
  33. #define AL_INVALID_ENUM 0xA002
  34. #define AL_INVALID_NAME 0xA001
  35. #define AL_INVALID_OPERATION 0xA004
  36. #define AL_INVALID_VALUE 0xA003
  37. #define AL_INVERSE_DISTANCE 0xD001
  38. #define AL_INVERSE_DISTANCE_CLAMPED 0xD002
  39. #define AL_LINEAR_DISTANCE 0xD003
  40. #define AL_LINEAR_DISTANCE_CLAMPED 0xD004
  41. #define AL_LOOPING 0x1007
  42. #define AL_MAX_DISTANCE 0x1023
  43. #define AL_MAX_GAIN 0x100E
  44. #define AL_MIN_GAIN 0x100D
  45. #define AL_NONE 0
  46. #define AL_NO_ERROR 0
  47. #define AL_ORIENTATION 0x100F
  48. #define AL_OUT_OF_MEMORY 0xA005
  49. #define AL_PAUSED 0x1013
  50. #define AL_PENDING 0x2011
  51. #define AL_PITCH 0x1003
  52. #define AL_PLAYING 0x1012
  53. #define AL_POSITION 0x1004
  54. #define AL_PROCESSED 0x2012
  55. #define AL_REFERENCE_DISTANCE 0x1020
  56. #define AL_RENDERER 0xB003
  57. #define AL_ROLLOFF_FACTOR 0x1021
  58. #define AL_SAMPLE_OFFSET 0x1025
  59. #define AL_SEC_OFFSET 0x1024
  60. #define AL_SIZE 0x2004
  61. #define AL_SOURCE_RELATIVE 0x202
  62. #define AL_SOURCE_STATE 0x1010
  63. #define AL_SOURCE_TYPE 0x1027
  64. #define AL_SPEED_OF_SOUND 0xC003
  65. #define AL_STATIC 0x1028
  66. #define AL_STOPPED 0x1014
  67. #define AL_STREAMING 0x1029
  68. #define AL_TRUE 1
  69. #define AL_UNDETERMINED 0x1030
  70. #define AL_UNUSED 0x2010
  71. #define AL_VELOCITY 0x1006
  72. #define AL_VENDOR 0xB001
  73. #define AL_VERSION 0xB002
  74. #define AL_VERSION_1_0
  75. #define AL_VERSION_1_1
  76. #define OPENAL
  77. typedef char ALboolean;
  78. typedef char ALchar;
  79. typedef double ALdouble;
  80. typedef float ALfloat;
  81. typedef int ALenum;
  82. typedef int ALint;
  83. typedef int ALsizei;
  84. typedef short ALshort;
  85. typedef signed char ALbyte;
  86. typedef unsigned char ALubyte;
  87. typedef unsigned int ALuint;
  88. typedef unsigned short ALushort;
  89. typedef void ALvoid;
  90. extern ALboolean alGetBoolean(ALenum param);
  91. extern ALboolean alIsBuffer(ALuint buffer);
  92. extern ALboolean alIsEnabled(ALenum capability);
  93. extern ALboolean alIsExtensionPresent(const ALchar *extname);
  94. extern ALboolean alIsSource(ALuint source);
  95. extern ALdouble alGetDouble(ALenum param);
  96. extern ALenum alGetEnumValue(const ALchar *ename);
  97. extern ALenum alGetError(void);
  98. extern ALfloat alGetFloat(ALenum param);
  99. extern ALint alGetInteger(ALenum param);
  100. extern const ALchar *alGetString(ALenum param);
  101. extern void *alGetProcAddress(const ALchar *fname);
  102. extern void alBuffer3f(ALuint buffer, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3);
  103. extern void alBuffer3i(ALuint buffer, ALenum param, ALint value1, ALint value2, ALint value3);
  104. extern void alBufferData(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq);
  105. extern void alBufferf(ALuint buffer, ALenum param, ALfloat value);
  106. extern void alBufferfv(ALuint buffer, ALenum param, const ALfloat *values);
  107. extern void alBufferi(ALuint buffer, ALenum param, ALint value);
  108. extern void alBufferiv(ALuint buffer, ALenum param, const ALint *values);
  109. extern void alDeleteBuffers(ALsizei n, const ALuint *buffers);
  110. extern void alDeleteSources(ALsizei n, const ALuint *sources);
  111. extern void alDisable(ALenum capability);
  112. extern void alDistanceModel(ALenum distanceModel);
  113. extern void alDopplerFactor(ALfloat value);
  114. extern void alDopplerVelocity(ALfloat value);
  115. extern void alEnable(ALenum capability);
  116. extern void alGenBuffers(ALsizei n, ALuint *buffers);
  117. extern void alGenSources(ALsizei n, ALuint *sources);
  118. extern void alGetBooleanv(ALenum param, ALboolean *values);
  119. extern void alGetBuffer3f(ALuint buffer, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3);
  120. extern void alGetBuffer3i(ALuint buffer, ALenum param, ALint *value1, ALint *value2, ALint *value3);
  121. extern void alGetBufferf(ALuint buffer, ALenum param, ALfloat *value);
  122. extern void alGetBufferfv(ALuint buffer, ALenum param, ALfloat *values);
  123. extern void alGetBufferi(ALuint buffer, ALenum param, ALint *value);
  124. extern void alGetBufferiv(ALuint buffer, ALenum param, ALint *values);
  125. extern void alGetDoublev(ALenum param, ALdouble *values);
  126. extern void alGetFloatv(ALenum param, ALfloat *values);
  127. extern void alGetIntegerv(ALenum param, ALint *values);
  128. extern void alGetListener3f(ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3);
  129. extern void alGetListener3i(ALenum param, ALint *value1, ALint *value2, ALint *value3);
  130. extern void alGetListenerf(ALenum param, ALfloat *value);
  131. extern void alGetListenerfv(ALenum param, ALfloat *values);
  132. extern void alGetListeneri(ALenum param, ALint *value);
  133. extern void alGetListeneriv(ALenum param, ALint *values);
  134. extern void alGetSource3f(ALuint source, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3);
  135. extern void alGetSource3i(ALuint source, ALenum param, ALint *value1, ALint *value2, ALint *value3);
  136. extern void alGetSourcef(ALuint source, ALenum param, ALfloat *value);
  137. extern void alGetSourcefv(ALuint source, ALenum param, ALfloat *values);
  138. extern void alGetSourcei(ALuint source, ALenum param, ALint *value);
  139. extern void alGetSourceiv(ALuint source, ALenum param, ALint *values);
  140. extern void alListener3f(ALenum param, ALfloat value1, ALfloat value2, ALfloat value3);
  141. extern void alListener3i(ALenum param, ALint value1, ALint value2, ALint value3);
  142. extern void alListenerf(ALenum param, ALfloat value);
  143. extern void alListenerfv(ALenum param, const ALfloat *values);
  144. extern void alListeneri(ALenum param, ALint value);
  145. extern void alListeneriv(ALenum param, const ALint *values);
  146. extern void alSource3f(ALuint source, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3);
  147. extern void alSource3i(ALuint source, ALenum param, ALint value1, ALint value2, ALint value3);
  148. extern void alSourcePause(ALuint source);
  149. extern void alSourcePausev(ALsizei n, const ALuint *sources);
  150. extern void alSourcePlay(ALuint source);
  151. extern void alSourcePlayv(ALsizei n, const ALuint *sources);
  152. extern void alSourceQueueBuffers(ALuint source, ALsizei nb, const ALuint *buffers);
  153. extern void alSourceRewind(ALuint source);
  154. extern void alSourceRewindv(ALsizei n, const ALuint *sources);
  155. extern void alSourceStop(ALuint source);
  156. extern void alSourceStopv(ALsizei n, const ALuint *sources);
  157. extern void alSourceUnqueueBuffers(ALuint source, ALsizei nb, ALuint *buffers);
  158. extern void alSourcef(ALuint source, ALenum param, ALfloat value);
  159. extern void alSourcefv(ALuint source, ALenum param, const ALfloat *values);
  160. extern void alSourcei(ALuint source, ALenum param, ALint value);
  161. extern void alSourceiv(ALuint source, ALenum param, const ALint *values);
  162. extern void alSpeedOfSound(ALfloat value);
  163. #ifdef __cplusplus
  164. }
  165. #endif
  166. #endif