olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginlv2.C
index d5f6c079eaf5ee4500a1a692d71caaa342541718..f4f1f7946df4ce9bf77b35e5dea84aa298f900aa 100644 (file)
@@ -128,6 +128,8 @@ int PluginLV2::load_lv2(const char *path, char *title)
 int PluginLV2::init_lv2(PluginLV2ClientConfig &conf, int sample_rate, int bfrsz)
 {
        reset_lv2();
+       double bps = 2. * sample_rate / bfrsz;
+       if( bps > refreshrate ) refreshrate = bps;
 
        lv2_AudioPort       = lilv_new_uri(world, LV2_CORE__AudioPort);
        lv2_ControlPort     = lilv_new_uri(world, LV2_CORE__ControlPort);