aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-06 02:58:43 -0700
committerChris Robinson <[email protected]>2011-07-06 02:58:43 -0700
commitbed264ad776f9e27390394a8e62a4e0a9b39b382 (patch)
treede38eaf170f762a83271247797c75972ef3533ec /Alc/ALu.c
parentf8be0448b01b0fa9e06c5f96de1384caf1d9477f (diff)
Use a Lock/UnlockDevice function instead of locking a NULL context
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 49e957b8..c2a2c5ea 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -984,7 +984,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
/* Clear mixing buffer */
memset(device->DryBuffer, 0, SamplesToDo*MAXCHANNELS*sizeof(ALfloat));
- LockContext(NULL);
+ LockDevice(device);
ctx = device->Contexts;
ctx_end = ctx + device->NumContexts;
while(ctx != ctx_end)
@@ -1036,7 +1036,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
ctx++;
}
- UnlockContext(NULL);
+ UnlockDevice(device);
//Post processing loop
for(i = 0;i < SamplesToDo;i++)
@@ -1087,7 +1087,7 @@ ALvoid aluHandleDisconnect(ALCdevice *device)
{
ALuint i;
- LockContext(NULL);
+ LockDevice(device);
for(i = 0;i < device->NumContexts;i++)
{
ALCcontext *Context = device->Contexts[i];
@@ -1108,5 +1108,5 @@ ALvoid aluHandleDisconnect(ALCdevice *device)
}
device->Connected = ALC_FALSE;
- UnlockContext(NULL);
+ UnlockDevice(device);
}