view org/vamp_plugins/test.java @ 2:d0ecf12b9d7b

Add the rest of the Plugin methods to the Java class
author Chris Cannam
date Wed, 18 Jan 2012 09:35:22 +0000
parents f718b0961713
children 8a0ac3d6903d
line wrap: on
line source

package org.vamp_plugins;

public class test
{
    public static void main(String[] args) {
	
	// This is a plugin we know we have installed
	String key = "vamp-example-plugins:percussiononsets";

	PluginLoader loader = PluginLoader.getInstance();
	
	try {
	    Plugin p = loader.loadPlugin(key, 44100);
	    System.out.println("identifier: " + p.getIdentifier() + "; " +
			       "name: " + p.getName() + "; " + 
			       "description: " + p.getDescription() + "; " +
			       "version: " + p.getPluginVersion());
	} catch (PluginLoader.LoadFailedException e) {
	    System.out.println("Plugin load failed");
	}
    }
}