Clean up generateAntiAliasUserWaveTable function

Also, make it so that we actually call this function
when necessary in TripleOscillator.
This commit is contained in:
sakertooth
2023-09-27 07:06:02 -04:00
parent c5f7ccba49
commit 73da2e1fa9
4 changed files with 23 additions and 16 deletions

View File

@@ -104,6 +104,11 @@ public:
m_userWave = _wave;
}
inline void setUserAntiAliasWaveTable(std::shared_ptr<const OscillatorConstants::waveform_t> waveform)
{
m_userAntiAliasWaveTable = waveform;
}
void update(sampleFrame* ab, const fpp_t frames, const ch_cnt_t chnl, bool modulator = false);
// now follow the wave-shape-routines...