aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-05 23:00:28 -0700
committerChris Robinson <[email protected]>2019-06-05 23:00:28 -0700
commit24df52c0420128ec9808cd65efa1aad7fd6827ec (patch)
tree9dfcfcb6828b27376e173d1efbb50c4fa01a6aa8 /Alc/alu.cpp
parentf9da06fc6a265e3ab2f548a9533b222e7a183637 (diff)
Remove the per-voice ChannelsPerOrder field
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index fc8b14d8..9a1958b6 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -585,9 +585,6 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
/* Only need to adjust the first channel of a B-Format source. */
voice->mChans[0].mDryParams.NFCtrlFilter.adjust(w0);
- std::copy(std::begin(Device->NumChannelsPerOrder),
- std::end(Device->NumChannelsPerOrder),
- std::begin(voice->mDirect.ChannelsPerOrder));
voice->mFlags |= VOICE_HAS_NFC;
}
@@ -631,10 +628,6 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
*/
voice->mChans[0].mDryParams.NFCtrlFilter.adjust(0.0f);
- voice->mDirect.ChannelsPerOrder[0] = 1;
- voice->mDirect.ChannelsPerOrder[1] = minz(voice->mDirect.Buffer.size()-1, 3);
- std::fill(std::begin(voice->mDirect.ChannelsPerOrder)+2,
- std::end(voice->mDirect.ChannelsPerOrder), 0);
voice->mFlags |= VOICE_HAS_NFC;
}
@@ -816,9 +809,6 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
for(ALsizei c{0};c < num_channels;c++)
voice->mChans[c].mDryParams.NFCtrlFilter.adjust(w0);
- std::copy(std::begin(Device->NumChannelsPerOrder),
- std::end(Device->NumChannelsPerOrder),
- std::begin(voice->mDirect.ChannelsPerOrder));
voice->mFlags |= VOICE_HAS_NFC;
}
@@ -879,9 +869,6 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
for(ALsizei c{0};c < num_channels;c++)
voice->mChans[c].mDryParams.NFCtrlFilter.adjust(w0);
- std::copy(std::begin(Device->NumChannelsPerOrder),
- std::end(Device->NumChannelsPerOrder),
- std::begin(voice->mDirect.ChannelsPerOrder));
voice->mFlags |= VOICE_HAS_NFC;
}