WIP
This commit is contained in:
parent
3fda15966c
commit
61482e8d4c
36 changed files with 325 additions and 122 deletions
|
|
@ -48,6 +48,13 @@ void WaveTableGenerator::cleanTables ()
|
|||
{
|
||||
for (auto& m_waveTable : m_waveTables)
|
||||
{
|
||||
for (int i = 0; i < numWaveTableSlots; ++i)
|
||||
{
|
||||
if (m_waveTable != nullptr && m_waveTable->m_WaveTables[i] != nullptr) {
|
||||
delete[] m_waveTable->m_WaveTables[i]->m_waveTable;
|
||||
delete m_waveTable->m_WaveTables[i];
|
||||
}
|
||||
}
|
||||
delete m_waveTable;
|
||||
}
|
||||
m_isInit = false;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@
|
|||
|
||||
#ifndef VENO_WAVETABLEGENERATOR_H
|
||||
#define VENO_WAVETABLEGENERATOR_H
|
||||
|
||||
#include "JuceHeader.h"
|
||||
|
||||
struct WaveTableObject
|
||||
{
|
||||
double m_topFreq;
|
||||
|
|
@ -47,5 +50,6 @@ protected:
|
|||
bool m_isInit = false;
|
||||
WaveTableGenerator () = default;
|
||||
~WaveTableGenerator () = default;
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WaveTableGenerator)
|
||||
};
|
||||
#endif //VENO_WAVETABLEGENERATOR_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue