aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alc.cpp2
-rw-r--r--Alc/alu.cpp1
-rw-r--r--Alc/hrtf.h1
-rw-r--r--Alc/mixvoice.cpp1
4 files changed, 0 insertions, 5 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index d779e199..1ae92779 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2643,8 +2643,6 @@ void AllocateVoices(ALCcontext *context, ALsizei num_voices, ALsizei old_sends)
voice->mFlags = old_voice->mFlags;
- voice->mOffset = old_voice->mOffset;
-
std::copy(std::begin(old_voice->mPrevSamples), std::end(old_voice->mPrevSamples),
std::begin(voice->mPrevSamples));
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 1939b7b0..dd160202 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -136,7 +136,6 @@ void ProcessHrtf(ALCdevice *device, const ALsizei SamplesToDo)
DirectHrtfState *state{device->mHrtfState.get()};
MixDirectHrtf(LeftOut, RightOut, device->Dry.Buffer, device->HrtfAccumData, state,
device->Dry.NumChannels, SamplesToDo);
- state->Offset += SamplesToDo;
}
void ProcessAmbiDec(ALCdevice *device, const ALsizei SamplesToDo)
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index fae3be0c..29dbb248 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -78,7 +78,6 @@ struct HrtfParams {
struct DirectHrtfState {
/* HRTF filter state for dry buffer content */
- ALsizei Offset{0};
ALsizei IrSize{0};
struct ChanData {
alignas(16) HrirArray<ALfloat> Values;
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp
index cc95d0fa..20cfdfe2 100644
--- a/Alc/mixvoice.cpp
+++ b/Alc/mixvoice.cpp
@@ -805,7 +805,6 @@ void MixVoice(ALvoice *voice, ALvoice::State vstate, const ALuint SourceID, ALCc
DataPosFrac &= FRACTIONMASK;
OutPos += DstBufferSize;
- voice->mOffset += DstBufferSize;
Counter = maxi(DstBufferSize, Counter) - DstBufferSize;
if(UNLIKELY(vstate != ALvoice::Playing))