2
0

alc.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef _ALC_H_
  2. #define _ALC_H_
  3. #include "altypes.h"
  4. #include "alctypes.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #ifdef _WIN32
  9. #ifdef _LIB
  10. #define ALCAPI __declspec(dllexport)
  11. #else
  12. #define ALCAPI __declspec(dllimport)
  13. typedef ALCvoid ALCdevice;
  14. typedef ALCvoid ALCcontext;
  15. #endif
  16. #define ALCAPIENTRY __cdecl
  17. #else
  18. #ifdef TARGET_OS_MAC
  19. #if TARGET_OS_MAC
  20. #pragma export on
  21. #endif
  22. #endif
  23. #define ALCAPI
  24. #define ALCAPIENTRY
  25. typedef ALCvoid ALCdevice;
  26. typedef ALCvoid ALCcontext;
  27. #endif
  28. #ifndef ALC_NO_PROTOTYPES
  29. ALCAPI ALCubyte* ALCAPIENTRY alcGetString(ALCdevice *device,ALCenum param);
  30. ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALCsizei size,ALCint *data);
  31. ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(ALCubyte *deviceName);
  32. ALCAPI ALCvoid ALCAPIENTRY alcCloseDevice(ALCdevice *device);
  33. ALCAPI ALCcontext*ALCAPIENTRY alcCreateContext(ALCdevice *device,ALCint *attrList);
  34. ALCAPI ALCboolean ALCAPIENTRY alcMakeContextCurrent(ALCcontext *context);
  35. ALCAPI ALCvoid ALCAPIENTRY alcProcessContext(ALCcontext *context);
  36. ALCAPI ALCcontext*ALCAPIENTRY alcGetCurrentContext(void);
  37. ALCAPI ALCdevice* ALCAPIENTRY alcGetContextsDevice(ALCcontext *context);
  38. ALCAPI ALCvoid ALCAPIENTRY alcSuspendContext(ALCcontext *context);
  39. ALCAPI ALCvoid ALCAPIENTRY alcDestroyContext(ALCcontext *context);
  40. ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device);
  41. ALCAPI ALCboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device,ALCubyte *extName);
  42. ALCAPI ALCvoid * ALCAPIENTRY alcGetProcAddress(ALCdevice *device,ALCubyte *funcName);
  43. ALCAPI ALCenum ALCAPIENTRY alcGetEnumValue(ALCdevice *device,ALCubyte *enumName);
  44. #else /* AL_NO_PROTOTYPES */
  45. ALCAPI ALCubyte* ALCAPIENTRY (*alcGetString)(ALCdevice *device,ALCenum param);
  46. ALCAPI ALCvoid ALCAPIENTRY (*alcGetIntegerv)(ALCdevice * device,ALCenum param,ALCsizei size,ALCint *data);
  47. ALCAPI ALCdevice* ALCAPIENTRY (*alcOpenDevice)(ALubyte *deviceName);
  48. ALCAPI ALCvoid ALCAPIENTRY (*alcCloseDevice)(ALCdevice *device);
  49. ALCAPI ALCcontext*ALCAPIENTRY (*alcCreateContext)(ALCdevice *device,ALCint *attrList);
  50. ALCAPI ALCboolean ALCAPIENTRY (*alcMakeContextCurrent)(ALCcontext *context);
  51. ALCAPI ALCvoid ALCAPIENTRY (*alcProcessContext)(ALCcontext *context);
  52. ALCAPI ALCcontext*ALCAPIENTRY (*alcGetCurrentContext)(ALCvoid);
  53. ALCAPI ALCdevice* ALCAPIENTRY (*alcGetContextsDevice)(ALCcontext *context);
  54. ALCAPI ALCvoid ALCAPIENTRY (*alcSuspendContext)(ALCcontext *context);
  55. ALCAPI ALCvoid ALCAPIENTRY (*alcDestroyContext)(ALCcontext *context);
  56. ALCAPI ALCenum ALCAPIENTRY (*alcGetError)(ALCdevice *device);
  57. ALCAPI ALCboolean ALCAPIENTRY (*alcIsExtensionPresent)(ALCdevice *device,ALCubyte *extName);
  58. ALCAPI ALCvoid * ALCAPIENTRY (*alcGetProcAddress)(ALCdevice *device,ALCubyte *funcName);
  59. ALCAPI ALCenum ALCAPIENTRY (*alcGetEnumValue)(ALCdevice *device,ALCubyte *enumName);
  60. #endif /* AL_NO_PROTOTYPES */
  61. #ifdef TARGET_OS_MAC
  62. #if TARGET_OS_MAC
  63. #pragma export off
  64. #endif
  65. #endif
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif