diff 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
line wrap: on
line diff
--- a/org/vamp_plugins/PluginLoader.java	Wed Nov 14 17:53:03 2012 +0000
+++ b/org/vamp_plugins/PluginLoader.java	Wed Nov 14 18:10:40 2012 +0000
@@ -33,7 +33,7 @@
      * their plugin keys (suitable for passing to loadPlugin) in the
      * order in which they were found.
      */
-    public native ArrayList<String> listPlugins();
+    public native String[] listPlugins();
 
     /**
      * Load a native Vamp plugin from the plugin path. If the plugin
@@ -63,7 +63,7 @@
      * If the plugin has no category information, return an empty
      * list.
      */
-    public native ArrayList<String> getPluginCategory(String key);
+    public native String[] getPluginCategory(String key);
 
     private PluginLoader() { initialise(); }
     private native long loadPluginNative(String key, float inputSampleRate);