alc.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 _OPENAL32LIB
  10. #define ALCAPI __declspec(dllexport)
  11. #else
  12. #define ALCAPI __declspec(dllimport)
  13. #endif
  14. typedef struct ALCdevice_struct ALCdevice;
  15. typedef struct ALCcontext_struct ALCcontext;
  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 __cdecl
  25. #endif
  26. #ifndef ALC_NO_PROTOTYPES
  27. ALCAPI ALCubyte* ALCAPIENTRY alcGetString(ALCdevice *device,ALCenum param);
  28. ALCAPI ALCvoid ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALCsizei size,ALCint *data);
  29. ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(ALCubyte *deviceName);
  30. ALCAPI ALCvoid ALCAPIENTRY alcCloseDevice(ALCdevice *device);
  31. ALCAPI ALCcontext*ALCAPIENTRY alcCreateContext(ALCdevice *device,ALCint *attrList);
  32. ALCAPI ALCboolean ALCAPIENTRY alcMakeContextCurrent(ALCcontext *context);
  33. ALCAPI ALCvoid ALCAPIENTRY alcProcessContext(ALCcontext *context);
  34. ALCAPI ALCcontext*ALCAPIENTRY alcGetCurrentContext(ALCvoid);
  35. ALCAPI ALCdevice* ALCAPIENTRY alcGetContextsDevice(ALCcontext *context);
  36. ALCAPI ALCvoid ALCAPIENTRY alcSuspendContext(ALCcontext *context);
  37. ALCAPI ALCvoid ALCAPIENTRY alcDestroyContext(ALCcontext *context);
  38. ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device);
  39. ALCAPI ALCboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device,ALCubyte *extName);
  40. ALCAPI ALCvoid * ALCAPIENTRY alcGetProcAddress(ALCdevice *device,ALCubyte *funcName);
  41. ALCAPI ALCenum ALCAPIENTRY alcGetEnumValue(ALCdevice *device,ALCubyte *enumName);
  42. #else /* ALC_NO_PROTOTYPES */
  43. ALCAPI ALCubyte* ALCAPIENTRY (*alcGetString)(ALCdevice *device,ALCenum param);
  44. ALCAPI ALCvoid ALCAPIENTRY (*alcGetIntegerv)(ALCdevice * device,ALCenum param,ALCsizei size,ALCint *data);
  45. ALCAPI ALCdevice* ALCAPIENTRY (*alcOpenDevice)(ALubyte *deviceName);
  46. ALCAPI ALCvoid ALCAPIENTRY (*alcCloseDevice)(ALCdevice *device);
  47. ALCAPI ALCcontext*ALCAPIENTRY (*alcCreateContext)(ALCdevice *device,ALCint *attrList);
  48. ALCAPI ALCboolean ALCAPIENTRY (*alcMakeContextCurrent)(ALCcontext *context);
  49. ALCAPI ALCvoid ALCAPIENTRY (*alcProcessContext)(ALCcontext *context);
  50. ALCAPI ALCcontext*ALCAPIENTRY (*alcGetCurrentContext)(ALCvoid);
  51. ALCAPI ALCdevice* ALCAPIENTRY (*alcGetContextsDevice)(ALCcontext *context);
  52. ALCAPI ALCvoid ALCAPIENTRY (*alcSuspendContext)(ALCcontext *context);
  53. ALCAPI ALCvoid ALCAPIENTRY (*alcDestroyContext)(ALCcontext *context);
  54. ALCAPI ALCenum ALCAPIENTRY (*alcGetError)(ALCdevice *device);
  55. ALCAPI ALCboolean ALCAPIENTRY (*alcIsExtensionPresent)(ALCdevice *device,ALCubyte *extName);
  56. ALCAPI ALCvoid * ALCAPIENTRY (*alcGetProcAddress)(ALCdevice *device,ALCubyte *funcName);
  57. ALCAPI ALCenum ALCAPIENTRY (*alcGetEnumValue)(ALCdevice *device,ALCubyte *enumName);
  58. #endif /* AL_NO_PROTOTYPES */
  59. #ifdef TARGET_OS_MAC
  60. #if TARGET_OS_MAC
  61. #pragma export off
  62. #endif
  63. #endif
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif