diff options
author | Chris Robinson <[email protected]> | 2007-12-06 22:22:11 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-06 22:22:11 -0800 |
commit | b3d35170ce50ead1c6cc9fab3ecd9c8ba79b54ff (patch) | |
tree | 257041704ef48a6420b34ab1e1736e43de1369b8 | |
parent | f8f155e4a0234874f6828a3e5df7b80bfabd352c (diff) |
Move some global declrations into headers
-rw-r--r-- | Alc/ALc.c | 11 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 8 |
2 files changed, 8 insertions, 11 deletions
@@ -38,14 +38,6 @@ char szDebug[256]; /////////////////////////////////////////////////////// -/////////////////////////////////////////////////////// -// FUNCTION PROTOTYPES - -void alc_alsa_init(BackendFuncs *func_list); -void alc_oss_init(BackendFuncs *func_list); -void alcDSoundInit(BackendFuncs *func_list); -void alcWinMMInit(BackendFuncs *FuncList); - #define EmptyFuncs { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } struct { const char *name; @@ -180,9 +172,6 @@ static ALCint alcMinorVersion = 1; /////////////////////////////////////////////////////// // Global Variables -// Critical Section data -extern CRITICAL_SECTION g_mutex; - // Context List static ALCcontext *g_pContextList = NULL; static ALCuint g_ulContextCount = 0; diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 4c63ef6b..edd9a19f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -72,6 +72,8 @@ extern "C" { #endif +extern CRITICAL_SECTION g_mutex; + extern char szDebug[256]; #define AL_PRINT(...) do { \ @@ -109,6 +111,12 @@ typedef struct { ALCuint (*AvailableSamples)(ALCdevice*); } BackendFuncs; +void alc_alsa_init(BackendFuncs *func_list); +void alc_oss_init(BackendFuncs *func_list); +void alcDSoundInit(BackendFuncs *func_list); +void alcWinMMInit(BackendFuncs *FuncList); + + struct ALCdevice_struct { ALboolean InUse; |