alc.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef ALC_CONTEXT_H_
  2. #define ALC_CONTEXT_H_
  3. #include <AL/alctypes.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define ALC_VERSION_0_1 1
  8. #ifdef _WIN32
  9. #define ALAPI __declspec(dllexport)
  10. #define ALAPIENTRY __cdecl
  11. #else /* _WIN32 */
  12. #define ALAPI
  13. #define ALAPIENTRY
  14. #define AL_CALLBACK
  15. #endif /* _WIN32 */
  16. #ifndef AL_NO_PROTOTYPES
  17. ALAPI void * ALAPIENTRY alcCreateContext( ALint* attrlist );
  18. /**
  19. * There is no current context, as we can mix
  20. * several active contexts. But al* calls
  21. * only affect the current context.
  22. */
  23. ALAPI ALCenum ALAPIENTRY alcMakeContextCurrent( ALvoid *alcHandle );
  24. /** ??? */
  25. ALAPI void * ALAPIENTRY alcUpdateContext( ALvoid *alcHandle );
  26. ALAPI ALCenum ALAPIENTRY alcDestroyContext( ALvoid *alcHandle );
  27. ALAPI ALCenum ALAPIENTRY alcGetError( ALvoid );
  28. ALAPI const ALubyte * ALAPIENTRY alcGetErrorString(ALenum param);
  29. ALAPI void * ALAPIENTRY alcGetCurrentContext( ALvoid );
  30. #else
  31. //
  32. // void * (*alcCreateContext)( ALint* attrlist );
  33. //
  34. // /**
  35. // * There is no current context, as we can mix
  36. // * several active contexts. But al* calls
  37. // * only affect the current context.
  38. // */
  39. // ALCenum (*alcMakeContextCurrent)( ALvoid *alcHandle );
  40. //
  41. // /** ??? */
  42. // void * (*alcUpdateContext)( ALvoid *alcHandle );
  43. //
  44. // ALCenum (*alcDestroyContext)( ALvoid *alcHandle );
  45. //
  46. // ALCenum (*alcGetError) ( ALvoid );
  47. //
  48. // const ALubyte *(*alcGetErrorString)(ALenum param);
  49. //
  50. // void * (*alcGetCurrentContext)( ALvoid );
  51. //
  52. #endif /* AL_NO_PROTOTYPES */
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif /* ALC_CONTEXT_H_ */