diff options
author | Chris Robinson <[email protected]> | 2013-11-04 23:34:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-11-04 23:34:18 -0800 |
commit | 10dbb1bc9b5d5040cb363c5a0dccb8ad273052b9 (patch) | |
tree | 4a83d72f77bd1a1cc4a71bc354af2ca0f7a30771 /Alc/ALc.c | |
parent | ca83629e4e9ea322716d8e3115b1ee61204212ad (diff) |
Remove the Lock and Unlock methods from BackendFuncs
All backends that still use the old interface use the default locking methods,
which is also used by the ALCbackend base.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -53,7 +53,7 @@ struct BackendInfo { BackendFuncs Funcs; }; -#define EmptyFuncs { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } +#define EmptyFuncs { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } static struct BackendInfo BackendList[] = { #ifdef HAVE_PULSEAUDIO { "pulse", ALCpulseBackendFactory_getFactory, NULL, NULL, NULL, EmptyFuncs }, @@ -1386,21 +1386,14 @@ static ALCboolean IsValidALCChannels(ALCenum channels) /************************************************ * Miscellaneous ALC helpers ************************************************/ +extern inline void LockContext(ALCcontext *context); +extern inline void UnlockContext(ALCcontext *context); -void ALCdevice_LockDefault(ALCdevice *device) -{ - ALCbackend_lock(device->Backend); -} -void ALCdevice_UnlockDefault(ALCdevice *device) -{ - ALCbackend_unlock(device->Backend); -} ALint64 ALCdevice_GetLatencyDefault(ALCdevice *UNUSED(device)) { return 0; } - ALint64 ALCdevice_GetLatency(ALCdevice *device) { return V0(device->Backend,getLatency)(); @@ -1416,9 +1409,6 @@ void ALCdevice_Unlock(ALCdevice *device) V0(device->Backend,unlock)(); } -extern inline void LockContext(ALCcontext *context); -extern inline void UnlockContext(ALCcontext *context); - /* SetDefaultWFXChannelOrder * |