diff options
author | Chris Robinson <[email protected]> | 2012-08-18 15:58:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-08-18 15:58:04 -0700 |
commit | 0865db564fa86df6c02ab10ec62cfbbe98f8c917 (patch) | |
tree | c3ea9c6c1dc274776fd29c409e2231fa949e9742 /OpenAL32/alAuxEffectSlot.c | |
parent | 2b020040b41a8a8a19869263ad2816daad2e1361 (diff) |
Move the device lock into the backend function table
For backend-specific implementations: this should hold the audio mixer loop for
playback devices, and provide recursive mutex behavior.
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 1823ed07..ab884cf7 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -487,7 +487,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e ALeffectState *State = NULL; ALenum err = AL_NO_ERROR; - LockDevice(Device); + ALCdevice_Lock(Device); if(newtype == AL_EFFECT_NULL && EffectSlot->effect.type != AL_EFFECT_NULL) { State = NoneCreate(); @@ -522,7 +522,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e if(err != AL_NO_ERROR) { - UnlockDevice(Device); + ALCdevice_Unlock(Device); return err; } @@ -534,7 +534,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e if(ALeffectState_DeviceUpdate(State, Device) == AL_FALSE) { RestoreFPUMode(oldMode); - UnlockDevice(Device); + ALCdevice_Unlock(Device); ALeffectState_Destroy(State); return AL_OUT_OF_MEMORY; } @@ -549,7 +549,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e * be called. */ EffectSlot->NeedsUpdate = AL_FALSE; ALeffectState_Update(EffectSlot->EffectState, Device, EffectSlot); - UnlockDevice(Device); + ALCdevice_Unlock(Device); RestoreFPUMode(oldMode); @@ -562,7 +562,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e memset(&EffectSlot->effect, 0, sizeof(EffectSlot->effect)); else memcpy(&EffectSlot->effect, effect, sizeof(*effect)); - UnlockDevice(Device); + ALCdevice_Unlock(Device); EffectSlot->NeedsUpdate = AL_TRUE; } |