aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-30 23:41:47 -0700
committerChris Robinson <[email protected]>2019-03-30 23:41:47 -0700
commitd8c76ba0c06b49ef73697390594f7359cc9e7e71 (patch)
treee4b5ec5c5f62982f64f46ec0e3c451a4d9360882
parent89210cddb754ab714f2fb02570293290cd2ac065 (diff)
Remove a couple unused member variables
-rw-r--r--Alc/alc.cpp2
-rw-r--r--Alc/alu.cpp1
-rw-r--r--Alc/hrtf.h1
-rw-r--r--Alc/mixvoice.cpp1
-rw-r--r--OpenAL32/Include/alu.h2
5 files changed, 0 insertions, 7 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))
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index fb0d7d37..9c33779d 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -249,8 +249,6 @@ struct ALvoice {
ALuint mFlags;
- ALuint mOffset; /* Number of output samples mixed since starting. */
-
using ResamplePaddingArray = std::array<ALfloat,MAX_RESAMPLE_PADDING*2>;
alignas(16) std::array<ResamplePaddingArray,MAX_INPUT_CHANNELS> mPrevSamples;