diff options
author | rekado <rekado@elephly.net> | 2013-01-14 17:53:22 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-14 17:53:22 +0800 |
commit | b0e8f1588987af7a8fae41cae0f3a7e24667322f (patch) | |
tree | 51d58fb1018b56e2407f487e7efe37c0ec99e239 | |
parent | 56d747d314ec5fc6fbf16b2badd580f7a3afc26b (diff) |
move destructor into header, declare load_* functions
-rw-r--r-- | src/mdaPiano.cpp | 7 | ||||
-rw-r--r-- | src/mdaPiano.h | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index 1a8f160..2b8a81b 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -71,13 +71,6 @@ void mdaPiano::resume() } -mdaPiano::~mdaPiano () //destroy any buffers... -{ - if(programs) delete [] programs; - if(comb) delete[] comb; -} - - void mdaPiano::setParameter(uint32_t index, float value) { programs[curProgram].param[index] = value; diff --git a/src/mdaPiano.h b/src/mdaPiano.h index f902efc..ee94240 100644 --- a/src/mdaPiano.h +++ b/src/mdaPiano.h @@ -12,7 +12,12 @@ class mdaPiano : public LV2::Synth<mdaPianoVoice, mdaPiano> { public: mdaPiano(double rate); - ~mdaPiano(); + ~mdaPiano() { + free(waves); + } + + void load_kgrp(KGRP*); + void load_samples(short**); virtual void process(float **inputs, float **outputs, uint32_t sampleframes); virtual void processReplacing(float **inputs, float **outputs, uint32_t sampleframes); |