Torque3D/Engine/lib/openal-soft/examples/common/alhelpers.h
AzaezelX 3603188b7f update openal-soft
sync point: master-ac5d40e40a0155351fe1be4aab30017b6a13a859
2021-01-26 13:01:35 -06:00

25 lines
512 B
C

#ifndef ALHELPERS_H
#define ALHELPERS_H
#include "AL/al.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Some helper functions to get the name from the format enums. */
const char *FormatName(ALenum type);
/* Easy device init/deinit functions. InitAL returns 0 on success. */
int InitAL(char ***argv, int *argc);
void CloseAL(void);
/* Cross-platform timeget and sleep functions. */
int altime_get(void);
void al_nssleep(unsigned long nsec);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* ALHELPERS_H */