diff options
author | Chris Robinson <[email protected]> | 2019-03-30 23:41:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-30 23:41:47 -0700 |
commit | d8c76ba0c06b49ef73697390594f7359cc9e7e71 (patch) | |
tree | e4b5ec5c5f62982f64f46ec0e3c451a4d9360882 /Alc | |
parent | 89210cddb754ab714f2fb02570293290cd2ac065 (diff) |
Remove a couple unused member variables
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alc.cpp | 2 | ||||
-rw-r--r-- | Alc/alu.cpp | 1 | ||||
-rw-r--r-- | Alc/hrtf.h | 1 | ||||
-rw-r--r-- | Alc/mixvoice.cpp | 1 |
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) @@ -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)) |