aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-23 20:16:11 -0700
committerChris Robinson <[email protected]>2015-10-23 20:16:11 -0700
commit714354caeef1927c3b5ecd132d7cc090e7672106 (patch)
tree53ed957b75cfba32615c93d7ceef6d7735fa5a49 /Alc/mixer.c
parentbca854baacf0c92038f0e2633fb92e9255b05603 (diff)
Set XYZ channel gains for source sends to 0
It's cleaner to just set the gains to 0 rather than to special-case B-Format in the mixer.
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 35c38431..e8b94b17 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -290,7 +290,6 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam
ResamplerFunc Resample;
ALbufferlistitem *BufferListItem;
ALuint DataPosInt, DataPosFrac;
- ALboolean isbformat = AL_FALSE;
ALboolean Looping;
ALuint increment;
ALenum State;
@@ -311,19 +310,6 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam
SampleSize = Source->SampleSize;
increment = voice->Step;
- while(BufferListItem)
- {
- ALbuffer *buffer;
- if((buffer=BufferListItem->buffer) != NULL)
- {
- isbformat = (buffer->FmtChannels == FmtBFormat2D ||
- buffer->FmtChannels == FmtBFormat3D);
- break;
- }
- BufferListItem = BufferListItem->next;
- }
- assert(BufferListItem != NULL);
-
IrSize = (Device->Hrtf ? GetHrtfIrSize(Device->Hrtf) : 0);
Resample = ((increment == FRACTIONONE && DataPosFrac == 0) ?
@@ -488,10 +474,6 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam
&parms->Hrtf[chan].State, DstBufferSize);
}
- /* Only the first channel for B-Format buffers (W channel) goes to
- * the send paths. */
- if(chan > 0 && isbformat)
- continue;
for(j = 0;j < Device->NumAuxSends;j++)
{
SendParams *parms = &voice->Send[j];