alc.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef OPENAL_ALC_H__
  2. #define OPENAL_ALC_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define ALCAPI ALC_API
  7. #define ALCAPIENTRY ALC_APIENTRY
  8. #define ALC_ALL_ATTRIBUTES 0x1003
  9. #define ALC_ALL_DEVICES_SPECIFIER 0x1013
  10. #define ALC_ATTRIBUTES_SIZE 0x1002
  11. #define ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER 0x311
  12. #define ALC_CAPTURE_DEVICE_SPECIFIER 0x310
  13. #define ALC_CAPTURE_SAMPLES 0x312
  14. #define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
  15. #define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004
  16. #define ALC_DEVICE_SPECIFIER 0x1005
  17. #define ALC_ENUMERATE_ALL_EXT 1
  18. #define ALC_EXTENSIONS 0x1006
  19. #define ALC_EXT_CAPTURE 1
  20. #define ALC_FALSE 0
  21. #define ALC_FREQUENCY 0x1007
  22. #define ALC_INVALID 0
  23. #define ALC_INVALID_CONTEXT 0xA002
  24. #define ALC_INVALID_DEVICE 0xA001
  25. #define ALC_INVALID_ENUM 0xA003
  26. #define ALC_INVALID_VALUE 0xA004
  27. #define ALC_MAJOR_VERSION 0x1000
  28. #define ALC_MINOR_VERSION 0x1001
  29. #define ALC_MONO_SOURCES 0x1010
  30. #define ALC_NO_ERROR 0
  31. #define ALC_OUT_OF_MEMORY 0xA005
  32. #define ALC_REFRESH 0x1008
  33. #define ALC_STEREO_SOURCES 0x1011
  34. #define ALC_SYNC 0x1009
  35. #define ALC_TRUE 1
  36. #define ALC_VERSION_0_1 1
  37. #define AL_ALC_H
  38. struct ALCcontext_struct;
  39. struct ALCdevice_struct;
  40. typedef char ALCboolean;
  41. typedef char ALCchar;
  42. typedef double ALCdouble;
  43. typedef float ALCfloat;
  44. typedef int ALCenum;
  45. typedef int ALCint;
  46. typedef int ALCsizei;
  47. typedef short ALCshort;
  48. typedef signed char ALCbyte;
  49. typedef struct ALCcontext_struct ALCcontext;
  50. typedef struct ALCdevice_struct ALCdevice;
  51. typedef unsigned char ALCubyte;
  52. typedef unsigned int ALCuint;
  53. typedef unsigned short ALCushort;
  54. typedef void ALCvoid;
  55. extern ALCboolean alcCaptureCloseDevice(ALCdevice *device);
  56. extern ALCboolean alcCloseDevice(ALCdevice *device);
  57. extern ALCboolean alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname);
  58. extern ALCboolean alcMakeContextCurrent(ALCcontext *context);
  59. extern ALCcontext *alcCreateContext(ALCdevice *device, const ALCint *attrlist);
  60. extern ALCcontext *alcGetCurrentContext();
  61. extern ALCdevice *alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize);
  62. extern ALCdevice *alcGetContextsDevice(ALCcontext *context);
  63. extern ALCdevice *alcOpenDevice(const ALCchar *devicename);
  64. extern ALCenum alcGetEnumValue(ALCdevice *device, const ALCchar *enumname);
  65. extern ALCenum alcGetError(ALCdevice *device);
  66. extern const ALCchar *alcGetString(ALCdevice *device, ALCenum param);
  67. extern void *alcGetProcAddress(ALCdevice *device, const ALCchar *funcname);
  68. extern void alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples);
  69. extern void alcCaptureStart(ALCdevice *device);
  70. extern void alcCaptureStop(ALCdevice *device);
  71. extern void alcDestroyContext(ALCcontext *context);
  72. extern void alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values);
  73. extern void alcProcessContext(ALCcontext *context);
  74. extern void alcSuspendContext(ALCcontext *context);
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. #endif