comparison org/vamp_plugins/PluginLoader.java @ 24:cd430fbf6795

Add getPluginCategory, more sensible return values, fix process, call new functions to test
author Chris Cannam
date Wed, 14 Nov 2012 18:10:40 +0000
parents cc9c503535d1
children 7d1118b3860d
comparison
equal deleted inserted replaced
23:cc9c503535d1 24:cd430fbf6795
31 /** 31 /**
32 * Search for all available Vamp plugins, and return a list of 32 * Search for all available Vamp plugins, and return a list of
33 * their plugin keys (suitable for passing to loadPlugin) in the 33 * their plugin keys (suitable for passing to loadPlugin) in the
34 * order in which they were found. 34 * order in which they were found.
35 */ 35 */
36 public native ArrayList<String> listPlugins(); 36 public native String[] listPlugins();
37 37
38 /** 38 /**
39 * Load a native Vamp plugin from the plugin path. If the plugin 39 * Load a native Vamp plugin from the plugin path. If the plugin
40 * cannot be loaded, throw LoadFailedException. 40 * cannot be loaded, throw LoadFailedException.
41 * 41 *
61 * containing the plugin. 61 * containing the plugin.
62 * 62 *
63 * If the plugin has no category information, return an empty 63 * If the plugin has no category information, return an empty
64 * list. 64 * list.
65 */ 65 */
66 public native ArrayList<String> getPluginCategory(String key); 66 public native String[] getPluginCategory(String key);
67 67
68 private PluginLoader() { initialise(); } 68 private PluginLoader() { initialise(); }
69 private native long loadPluginNative(String key, float inputSampleRate); 69 private native long loadPluginNative(String key, float inputSampleRate);
70 private native void initialise(); 70 private native void initialise();
71 private static PluginLoader inst; 71 private static PluginLoader inst;