lv2 fixes, dcraw upgrade, arch/libdv
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginlv2.C
index 4ec32648ae3441d44048cee56fc570852b736473..c894bd0a92e7669aa5cb8c6b64ce3b2cd4b8a17a 100644 (file)
@@ -125,7 +125,7 @@ int PluginLV2::load_lv2(const char *path, char *title)
        return 0;
 }
 
-int PluginLV2::init_lv2(PluginLV2ClientConfig &conf, int sample_rate)
+int PluginLV2::init_lv2(PluginLV2ClientConfig &conf, int sample_rate, int bfrsz)
 {
        reset_lv2();
 
@@ -191,6 +191,7 @@ int PluginLV2::init_lv2(PluginLV2ClientConfig &conf, int sample_rate)
        ui_updateRate = uri_table.map(LV2_UI__updateRate);
 
        samplerate = sample_rate;
+       block_length = bfrsz;
        options.add(param_sampleRate, sizeof(float), atom_float, &samplerate);
        options.add(bufsz_minBlockLength, sizeof(int), atom_int, &block_length);
        options.add(bufsz_maxBlockLength, sizeof(int), atom_int, &block_length);