tweak lv2 plugin min sample rate, add lv2 plugin info
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginlv2client.C
index 1ea3bffb9554fbc830a9ccbabbd872aff5d850fb..a508f46f5ba413592bdd41aba9439fc8dbe48b45 100644 (file)
@@ -838,6 +838,9 @@ PluginServer* MWindow::new_lv2_server(MWindow *mwindow, const char *name)
 PluginClient *PluginServer::new_lv2_plugin()
 {
        PluginLV2Client *client = new PluginLV2Client(this);
+//for some lv2 clients
+       if( client->sample_rate < 64 ) client->sample_rate = 64;
+       if( client->project_sample_rate < 64 ) client->project_sample_rate = 64;
        if( client->load_lv2(path) ) { delete client;  client = 0; }
        else client->init_lv2();
        return client;