diff options
author | Chris Robinson <[email protected]> | 2011-05-18 18:52:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-18 18:52:47 -0700 |
commit | b838d123f899359e791450271d09324668f2d25c (patch) | |
tree | b1f79d6d7342910c14a87da5e874c4fcd3be5f45 /Alc | |
parent | 1d3926e1872657da9b0490cff233454b583ff964 (diff) |
Multiply the history offset in the filtering funcitons
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mixer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 61dfe00b..33181890 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -111,7 +111,7 @@ static void Mix_Hrtf_##T##_##sampler(ALsource *Source, ALCdevice *Device, \ if(LIKELY(OutPos == 0)) \ { \ value = sampler(data + pos*NumChannels + i, NumChannels, frac); \ - value = lpFilter2PC(DryFilter, i*2, value); \ + value = lpFilter2PC(DryFilter, i, value); \ \ HrtfHistory[i][HrtfOffset&HRTF_LENGTH_MASK] = value; \ for(c = 0;c < HRTF_LENGTH;c++) \ @@ -127,7 +127,7 @@ static void Mix_Hrtf_##T##_##sampler(ALsource *Source, ALCdevice *Device, \ for(BufferIdx = 0;BufferIdx < BufferSize;BufferIdx++) \ { \ value = sampler(data + pos*NumChannels + i, NumChannels, frac); \ - value = lpFilter2P(DryFilter, i*2, value); \ + value = lpFilter2P(DryFilter, i, value); \ \ HrtfHistory[i][HrtfOffset&HRTF_LENGTH_MASK] = value; \ for(c = 0;c < HRTF_LENGTH;c++) \ @@ -149,7 +149,7 @@ static void Mix_Hrtf_##T##_##sampler(ALsource *Source, ALCdevice *Device, \ if(LIKELY(OutPos == SamplesToDo)) \ { \ value = sampler(data + pos*NumChannels + i, NumChannels, frac); \ - value = lpFilter2PC(DryFilter, i*2, value); \ + value = lpFilter2PC(DryFilter, i, value); \ \ HrtfHistory[i][HrtfOffset&HRTF_LENGTH_MASK] = value; \ for(c = 0;c < HRTF_LENGTH;c++) \ @@ -278,7 +278,7 @@ static void Mix_##T##_##sampler(ALsource *Source, ALCdevice *Device, \ { \ value = sampler(data + pos*NumChannels + i, NumChannels, frac); \ \ - value = lpFilter2PC(DryFilter, i*2, value); \ + value = lpFilter2PC(DryFilter, i, value); \ for(c = 0;c < MAXCHANNELS;c++) \ ClickRemoval[c] -= value*DrySend[i][c]; \ } \ @@ -286,7 +286,7 @@ static void Mix_##T##_##sampler(ALsource *Source, ALCdevice *Device, \ { \ value = sampler(data + pos*NumChannels + i, NumChannels, frac); \ \ - value = lpFilter2P(DryFilter, i*2, value); \ + value = lpFilter2P(DryFilter, i, value); \ for(c = 0;c < MAXCHANNELS;c++) \ DryBuffer[OutPos][c] += value*DrySend[i][c]; \ \ @@ -299,7 +299,7 @@ static void Mix_##T##_##sampler(ALsource *Source, ALCdevice *Device, \ { \ value = sampler(data + pos*NumChannels + i, NumChannels, frac); \ \ - value = lpFilter2PC(DryFilter, i*2, value); \ + value = lpFilter2PC(DryFilter, i, value); \ for(c = 0;c < MAXCHANNELS;c++) \ PendingClicks[c] += value*DrySend[i][c]; \ } \ |