Move some global declrations into headers
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user