2007-11-13 18:02:18 -08:00
|
|
|
#ifndef _AL_THUNK_H_
|
|
|
|
#define _AL_THUNK_H_
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "AL/al.h"
|
|
|
|
#include "AL/alc.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void alThunkInit(void);
|
|
|
|
void alThunkExit(void);
|
2011-08-22 07:22:02 -07:00
|
|
|
ALenum alThunkNewEntry(ALuint *idx);
|
2007-11-13 18:02:18 -08:00
|
|
|
void alThunkRemoveEntry(ALuint index);
|
|
|
|
|
2007-12-06 22:15:16 -08:00
|
|
|
#if (SIZEOF_VOIDP > SIZEOF_UINT)
|
|
|
|
|
2007-11-13 18:02:18 -08:00
|
|
|
#define ALTHUNK_INIT() alThunkInit()
|
|
|
|
#define ALTHUNK_EXIT() alThunkExit()
|
2011-08-22 07:22:02 -07:00
|
|
|
#define ALTHUNK_NEWENTRY(p,i) alThunkNewEntry(i)
|
2007-11-13 18:02:18 -08:00
|
|
|
#define ALTHUNK_REMOVEENTRY(i) alThunkRemoveEntry(i)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define ALTHUNK_INIT()
|
|
|
|
#define ALTHUNK_EXIT()
|
2011-08-22 07:22:02 -07:00
|
|
|
#define ALTHUNK_NEWENTRY(p,i) ((*(i) = (ALuint)p),AL_NO_ERROR)
|
2010-10-11 12:24:28 -07:00
|
|
|
#define ALTHUNK_REMOVEENTRY(i) ((ALvoid)i)
|
2007-11-13 18:02:18 -08:00
|
|
|
|
|
|
|
#endif // (SIZEOF_VOIDP > SIZEOF_INT)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //_AL_THUNK_H_
|
|
|
|
|