alut.h 979 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _ALUT_H_
  2. #define _ALUT_H_
  3. #include <AL/altypes.h>
  4. #include <AL/aluttypes.h>
  5. #ifdef _WIN32
  6. #define ALAPI __declspec(dllexport)
  7. #define ALAPIENTRY __cdecl
  8. #define AL_CALLBACK
  9. #else /* _WIN32 */
  10. #define ALAPI
  11. #define ALAPIENTRY
  12. #define AL_CALLBACK
  13. #endif /* _WIN32 */
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #ifndef AL_NO_PROTOTYPES
  18. ALAPI void ALAPIENTRY alutInit(int *argc, char *argv[]);
  19. ALAPI void ALAPIENTRY alutExit(ALvoid);
  20. ALAPI ALboolean ALAPIENTRY alutLoadWAV( const char *fname,
  21. ALvoid **wave,
  22. ALsizei *format,
  23. ALsizei *size,
  24. ALsizei *bits,
  25. ALsizei *freq );
  26. #else
  27. //
  28. // void (*alutInit)(int *argc, char *argv[]);
  29. // void (*alutExit)(ALvoid);
  30. //
  31. // ALboolean (*alutLoadWAV)( const char *fname,
  32. // ALvoid **wave,
  33. // ALsizei *format,
  34. // ALsizei *size,
  35. // ALsizei *bits,
  36. // ALsizei *freq );
  37. //
  38. //
  39. #endif /* AL_NO_PROTOTYPES */
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif