diff options
author | Chris Robinson <[email protected]> | 2011-08-20 03:59:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-20 04:01:07 -0700 |
commit | 22ad15e1f1eb89c260319376d2ef20034b54b154 (patch) | |
tree | 3270e89d406adc0d08285c09b514c335c1d6ab05 /OpenAL32 | |
parent | 80b8abb0ec69b8c742c38f35e94870e6a27b852b (diff) |
Move some functions into a separate helper source file
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 9a6c0c2b..8265380e 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -178,6 +178,10 @@ void *LoadLib(const char *name); void CloseLib(void *handle); void *GetSymbol(void *handle, const char *name); +typedef LONG pthread_once_t; +#define PTHREAD_ONCE_INIT 0 +void pthread_once(pthread_once_t *once, void (*callback)(void)); + #else #include <unistd.h> @@ -259,6 +263,12 @@ static __inline ALuint NextPowerOf2(ALuint value) } +enum DevProbe { + DEVICE_PROBE, + ALL_DEVICE_PROBE, + CAPTURE_DEVICE_PROBE +}; + typedef struct { ALCboolean (*OpenPlayback)(ALCdevice*, const ALCchar*); void (*ClosePlayback)(ALCdevice*); @@ -273,10 +283,12 @@ typedef struct { ALCuint (*AvailableSamples)(ALCdevice*); } BackendFuncs; -enum DevProbe { - DEVICE_PROBE, - ALL_DEVICE_PROBE, - CAPTURE_DEVICE_PROBE +struct BackendInfo { + const char *name; + ALCboolean (*Init)(BackendFuncs*); + void (*Deinit)(void); + void (*Probe)(enum DevProbe); + BackendFuncs Funcs; }; ALCboolean alc_alsa_init(BackendFuncs *func_list); @@ -544,6 +556,7 @@ void al_print(const char *fname, unsigned int line, const char *fmt, ...) PRINTF_STYLE(3,4); #define AL_PRINT(...) al_print(__FILE__, __LINE__, __VA_ARGS__) +extern FILE *LogFile; enum LogLevel { NoLog, LogError, @@ -571,6 +584,8 @@ extern enum LogLevel LogLevel; extern ALdouble ConeScale; extern ALdouble ZScale; +extern ALint RTPrioLevel; + #ifdef __cplusplus } #endif |