diff options
author | Chris Robinson <[email protected]> | 2010-09-08 17:29:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-09-08 17:29:16 -0700 |
commit | fe98ab5398fcc2bc0e6211205bd05e1ff67fd946 (patch) | |
tree | c0dd9a08e73899bec24fafc6655234804129cb0b /Alc | |
parent | 76be7eb1e7e240032d734ed41eb2e506552b61e1 (diff) |
Combine multiple checks into one
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mixer.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 356a760f..72eabf8c 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -130,15 +130,18 @@ static void MixSource(ALsource *ALSource, ALCcontext *ALContext, for(i = 0;i < MAX_SENDS;i++) { WetFilter[i] = &ALSource->Params.Send[i].iirFilter; - WetBuffer[i] = (ALSource->Send[i].Slot ? - ALSource->Send[i].Slot->WetBuffer : - DummyBuffer); - WetClickRemoval[i] = (ALSource->Send[i].Slot ? - ALSource->Send[i].Slot->ClickRemoval : - DummyClickRemoval); - WetPendingClicks[i] = (ALSource->Send[i].Slot ? - ALSource->Send[i].Slot->PendingClicks : - DummyClickRemoval); + if(ALSource->Send[i].Slot) + { + WetBuffer[i] = ALSource->Send[i].Slot->WetBuffer; + WetClickRemoval[i] = ALSource->Send[i].Slot->ClickRemoval; + WetPendingClicks[i] = ALSource->Send[i].Slot->PendingClicks; + } + else + { + WetBuffer[i] = DummyBuffer; + WetClickRemoval[i] = DummyClickRemoval; + WetPendingClicks[i] = DummyClickRemoval; + } } /* Get current buffer queue item */ |