[SCM] calf/master: + Organ: use proper form of delete (fixes regression created today), initialize params struct on first run + Monosynth: use proper form of delete (see above)
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:37:22 UTC 2013
The following commit has been merged in the master branch:
commit bb3e7c7159646940bf1a951f2ef05bdcd73911a1
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date: Wed Jul 2 19:19:00 2008 +0000
+ Organ: use proper form of delete (fixes regression created today), initialize params struct on first run
+ Monosynth: use proper form of delete (see above)
git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@220 78b06b96-2940-0410-b7fc-879d825d01d8
diff --git a/src/calf/organ.h b/src/calf/organ.h
index 508f5e5..2201c82 100644
--- a/src/calf/organ.h
+++ b/src/calf/organ.h
@@ -382,11 +382,12 @@ struct drawbar_organ: public synth::basic_synth {
virtual void percussion_note_on(int note, int vel) {
percussion.note_on(note, vel);
}
+ virtual void params_changed() = 0;
virtual void setup(int sr) {
basic_synth::setup(sr);
percussion.setup(sr);
parameters->cutoff = 0;
- update_params();
+ params_changed();
global_vibrato.reset();
}
void update_params();
diff --git a/src/calf/osc.h b/src/calf/osc.h
index 9bffa33..b87b90e 100644
--- a/src/calf/osc.h
+++ b/src/calf/osc.h
@@ -164,7 +164,7 @@ struct waveform_family: public map<uint32_t, float *>
~waveform_family()
{
for (iterator i = begin(); i != end(); i++)
- delete i->second;
+ delete []i->second;
clear();
}
};
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list