diff 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
line wrap: on
line diff
--- a/plugin/LADSPAPluginFactory.cpp	Wed Jul 26 16:48:07 2006 +0000
+++ b/plugin/LADSPAPluginFactory.cpp	Thu Jul 27 16:06:32 2006 +0000
@@ -31,6 +31,7 @@
 #include "PluginIdentifier.h"
 
 #include "base/System.h"
+#include "base/Preferences.h"
 
 #ifdef HAVE_LRDF
 #include "lrdf.h"
@@ -261,7 +262,8 @@
 	
     } else if (LADSPA_IS_HINT_DEFAULT_440(d)) {
 	
-	deft = 440.0;
+//	deft = 440.0;
+        deft = Preferences::getInstance()->getTuningFrequency();
 	
     } else {