From 434497c7bdcc572a42f038fa66c1e577321c9203 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 14 Dec 2002 13:52:25 +0000 Subject: [PATCH] Even more linux oal fixes --- src/native/common/extal.h | 40 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/src/native/common/extal.h b/src/native/common/extal.h index 4a267f85..21592ccb 100644 --- a/src/native/common/extal.h +++ b/src/native/common/extal.h @@ -53,6 +53,9 @@ extern "C" { #define ALCAPI __declspec(dllimport) #endif + typedef struct ALCdevice_struct ALCdevice; + typedef struct ALCcontext_struct ALCcontext; + #define ALCAPIENTRY __cdecl #else #ifdef TARGET_OS_MAC @@ -62,6 +65,40 @@ extern "C" { #endif #define ALCAPI #define ALCAPIENTRY + +/** ALC boolean type. */ +typedef char ALCboolean; + +/** ALC 8bit signed byte. */ +typedef char ALCbyte; + +/** ALC 8bit unsigned byte. */ +typedef unsigned char ALCubyte; + +/** ALC 16bit signed short integer type. */ +typedef short ALCshort; + +/** ALC 16bit unsigned short integer type. */ +typedef unsigned short ALCushort; + +/** ALC 32bit unsigned integer type. */ +typedef unsigned ALCuint; + +/** ALC 32bit signed integer type. */ +typedef int ALCint; + +/** ALC 32bit floating point type. */ +typedef float ALCfloat; + +/** ALC 64bit double point type. */ +typedef double ALCdouble; + +/** ALC 32bit type. */ +typedef unsigned int ALCsizei; + +/** ALC void type */ +typedef void ALCvoid; + #endif #ifdef _WIN32 @@ -100,9 +137,6 @@ DEFINE_GUID(DSPROPSETID_EAX20_BufferProperties, #define INITGUID #define OPENAL - typedef struct ALCdevice_struct ALCdevice; - typedef struct ALCcontext_struct ALCcontext; - int InitializeOpenAL(); void DeInitializeOpenAL();