comparison plugin/LADSPAPluginFactory.cpp @ 145:82f529a08cf3

* Change preferences dialog to ok/apply/cancel model * Make preferences persist in a config file * Change instance() to getInstance() for all singleton types * Make pasting to time-value layer with no values in clipboard ask you how to generate the values * Fix bad behaviour caused by importing "data"-type (i.e. 3d dense) model from annotation file without a fixed window size available
author Chris Cannam
date Thu, 27 Jul 2006 16:06:32 +0000
parents 4170b21773cf
children 4b2ea82fd0ed
comparison
equal deleted inserted replaced
144:a9c3ba1777e1 145:82f529a08cf3
29 29
30 #include "LADSPAPluginInstance.h" 30 #include "LADSPAPluginInstance.h"
31 #include "PluginIdentifier.h" 31 #include "PluginIdentifier.h"
32 32
33 #include "base/System.h" 33 #include "base/System.h"
34 #include "base/Preferences.h"
34 35
35 #ifdef HAVE_LRDF 36 #ifdef HAVE_LRDF
36 #include "lrdf.h" 37 #include "lrdf.h"
37 #endif // HAVE_LRDF 38 #endif // HAVE_LRDF
38 39
259 260
260 deft = 100.0; 261 deft = 100.0;
261 262
262 } else if (LADSPA_IS_HINT_DEFAULT_440(d)) { 263 } else if (LADSPA_IS_HINT_DEFAULT_440(d)) {
263 264
264 deft = 440.0; 265 // deft = 440.0;
266 deft = Preferences::getInstance()->getTuningFrequency();
265 267
266 } else { 268 } else {
267 269
268 deft = minimum; 270 deft = minimum;
269 } 271 }