Protect intrusive_ptr and ComPtr from moving to itself
[openal-soft.git] / examples / common / alhelpers.h
blob3752d2180a9168a4d71a25c4c198d16c062ba26e
1 #ifndef ALHELPERS_H
2 #define ALHELPERS_H
4 #include "AL/al.h"
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 /* Some helper functions to get the name from the format enums. */
11 const char *FormatName(ALenum type);
13 /* Easy device init/deinit functions. InitAL returns 0 on success. */
14 int InitAL(char ***argv, int *argc);
15 void CloseAL(void);
17 /* Cross-platform timeget and sleep functions. */
18 int altime_get(void);
19 void al_nssleep(unsigned long nsec);
21 #ifdef __cplusplus
22 } // extern "C"
23 #endif
25 #endif /* ALHELPERS_H */