alhelpers.h 512 B

12345678910111213141516171819202122232425
  1. #ifndef ALHELPERS_H
  2. #define ALHELPERS_H
  3. #include "AL/al.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /* Some helper functions to get the name from the format enums. */
  8. const char *FormatName(ALenum type);
  9. /* Easy device init/deinit functions. InitAL returns 0 on success. */
  10. int InitAL(char ***argv, int *argc);
  11. void CloseAL(void);
  12. /* Cross-platform timeget and sleep functions. */
  13. int altime_get(void);
  14. void al_nssleep(unsigned long nsec);
  15. #ifdef __cplusplus
  16. } // extern "C"
  17. #endif
  18. #endif /* ALHELPERS_H */