Get rid of an unnecessary struct

This commit is contained in:
Chris Robinson
2020-01-13 19:45:13 -08:00
parent a1a107f576
commit e889282131
3 changed files with 4 additions and 8 deletions
-4
View File
@@ -61,10 +61,6 @@ struct HrtfStore {
};
struct HrtfState {
alignas(16) std::array<float,HRTF_HISTORY_LENGTH> History;
};
struct HrtfFilter {
alignas(16) HrirArray Coeffs;
ALuint Delay[2];
+3 -3
View File
@@ -430,12 +430,12 @@ void DoHrtfMix(const float *samples, const ALuint DstBufferSize, DirectParams &p
auto &AccumSamples = Device->HrtfAccumData;
/* Copy the HRTF history and new input samples into a temp buffer. */
auto src_iter = std::copy(parms.Hrtf.State.History.begin(), parms.Hrtf.State.History.end(),
auto src_iter = std::copy(parms.Hrtf.History.begin(), parms.Hrtf.History.end(),
std::begin(HrtfSamples));
std::copy_n(samples, DstBufferSize, src_iter);
/* Copy the last used samples back into the history buffer for later. */
std::copy_n(std::begin(HrtfSamples) + DstBufferSize, parms.Hrtf.State.History.size(),
parms.Hrtf.State.History.begin());
std::copy_n(std::begin(HrtfSamples) + DstBufferSize, parms.Hrtf.History.size(),
parms.Hrtf.History.begin());
/* If fading, the old gain is not silence, and this is the first mixing
* pass, fade between the IRs.
+1 -1
View File
@@ -101,7 +101,7 @@ struct DirectParams {
struct {
HrtfFilter Old;
HrtfFilter Target;
HrtfState State;
alignas(16) std::array<float,HRTF_HISTORY_LENGTH> History;
} Hrtf;
struct {