aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-28 05:10:28 -0700
committerChris Robinson <[email protected]>2013-10-28 05:10:28 -0700
commitf065700ef925048d28d7db3bd4d9225e7aa21cc7 (patch)
tree8a45643264ff871f2f3309e49213bf91112943a5 /OpenAL32
parente54983694bc43a0f1a7ebb4ed0aeb78a1f2d36ab (diff)
Move the lock/unlock methods to the backend
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 29e01034..01a2ec37 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -683,8 +683,6 @@ struct ALCdevice_struct
#define ALCdevice_StopCapture(a) ((a)->Funcs->StopCapture((a)))
#define ALCdevice_CaptureSamples(a,b,c) ((a)->Funcs->CaptureSamples((a), (b), (c)))
#define ALCdevice_AvailableSamples(a) ((a)->Funcs->AvailableSamples((a)))
-#define ALCdevice_Lock(a) ((a)->Funcs->Lock((a)))
-#define ALCdevice_Unlock(a) ((a)->Funcs->Unlock((a)))
// Frequency was requested by the app or config file
#define DEVICE_FREQUENCY_REQUEST (1<<1)
@@ -786,16 +784,17 @@ void ALCdevice_LockDefault(ALCdevice *device);
void ALCdevice_UnlockDefault(ALCdevice *device);
ALint64 ALCdevice_GetLatencyDefault(ALCdevice *device);
-static inline void LockContext(ALCcontext *context)
-{ ALCdevice_Lock(context->Device); }
-static inline void UnlockContext(ALCcontext *context)
-{ ALCdevice_Unlock(context->Device); }
+void ALCdevice_Lock(ALCdevice *device);
+void ALCdevice_Unlock(ALCdevice *device);
+void LockContext(ALCcontext *context);
+void UnlockContext(ALCcontext *context);
void *al_malloc(size_t alignment, size_t size);
void *al_calloc(size_t alignment, size_t size);
void al_free(void *ptr);
+
typedef struct {
#ifdef HAVE_FENV_H
DERIVE_FROM_TYPE(fenv_t);