diff options
author | Chris Robinson <[email protected]> | 2014-05-18 09:31:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-18 09:31:08 -0700 |
commit | 5a1abf69189463312787921f5a3cf5fd35bf65c2 (patch) | |
tree | e48f2cd51f7aa4bfe2a92489bf82445f2d9d98d3 /Alc/ALu.c | |
parent | 29b5dae6aa010224b2fd428530e1cd67d6d92e1a (diff) |
Use different parameters for HRTF mixers
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -99,7 +99,7 @@ static ResamplerFunc SelectResampler(enum Resampler Resampler, ALuint increment) } -static DryMixerFunc SelectHrtfMixer(void) +static HrtfMixerFunc SelectHrtfMixer(void) { #ifdef HAVE_SSE if((CPUCapFlags&CPU_CAP_SSE)) @@ -467,7 +467,8 @@ ALvoid CalcNonAttnSourceParams(ALactivesource *src, const ALCcontext *ALContext) src->Direct.Moving = AL_TRUE; } - src->DryMix = SelectDirectMixer(); + src->IsHrtf = AL_FALSE; + src->Dry.Mix = SelectDirectMixer(); } else if(Device->Hrtf) { @@ -498,7 +499,8 @@ ALvoid CalcNonAttnSourceParams(ALactivesource *src, const ALCcontext *ALContext) src->Direct.Moving = AL_TRUE; src->Direct.Mix.Hrtf.IrSize = GetHrtfIrSize(Device->Hrtf); - src->DryMix = SelectHrtfMixer(); + src->IsHrtf = AL_TRUE; + src->Dry.HrtfMix = SelectHrtfMixer(); } else { @@ -557,7 +559,8 @@ ALvoid CalcNonAttnSourceParams(ALactivesource *src, const ALCcontext *ALContext) src->Direct.Moving = AL_TRUE; } - src->DryMix = SelectDirectMixer(); + src->IsHrtf = AL_FALSE; + src->Dry.Mix = SelectDirectMixer(); } for(i = 0;i < NumSends;i++) { @@ -1020,7 +1023,8 @@ ALvoid CalcSourceParams(ALactivesource *src, const ALCcontext *ALContext) } src->Direct.Mix.Hrtf.IrSize = GetHrtfIrSize(Device->Hrtf); - src->DryMix = SelectHrtfMixer(); + src->IsHrtf = AL_TRUE; + src->Dry.HrtfMix = SelectHrtfMixer(); } else { @@ -1088,7 +1092,8 @@ ALvoid CalcSourceParams(ALactivesource *src, const ALCcontext *ALContext) src->Direct.Moving = AL_TRUE; } - src->DryMix = SelectDirectMixer(); + src->IsHrtf = AL_FALSE; + src->Dry.Mix = SelectDirectMixer(); } for(i = 0;i < NumSends;i++) { |