aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-05 00:29:20 -0800
committerChris Robinson <[email protected]>2007-12-05 00:29:20 -0800
commit15019b3871efa27782703ee216aa910927427801 (patch)
treedfa6c6e9fd677160b605fcf9ed91421ade76f41d /Alc/oss.c
parent86cced248be365c3e7597deeab53d6c25636bc54 (diff)
Allow aluMixData to accept a NULL context for silence
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 8376fc11..7ee3b905 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -80,10 +80,7 @@ static ALuint OSSProc(ALvoid *ptr)
while(!data->killNow)
{
SuspendContext(NULL);
- if(pDevice->Context)
- aluMixData(pDevice->Context,data->mix_data,data->data_size,pDevice->Format);
- else
- memset(data->mix_data,data->silence,data->data_size);
+ aluMixData(pDevice->Context,data->mix_data,data->data_size,pDevice->Format);
ProcessContext(NULL);
remaining = data->data_size;