# HG changeset patch # User Chris Cannam # Date 1357922246 0 # Node ID b1036ab8076782be1368484f70f676c7575ab016 # Parent a1775686801372500e35e67cb7aa269d4389c5ca Use abstract interfaces diff -r a17756868013 -r b1036ab80767 org/vamp_plugins/Plugin.java --- a/org/vamp_plugins/Plugin.java Mon Jan 07 22:03:26 2013 +0000 +++ b/org/vamp_plugins/Plugin.java Fri Jan 11 16:37:26 2013 +0000 @@ -34,8 +34,8 @@ package org.vamp_plugins; -import java.util.TreeMap; -import java.util.ArrayList; +import java.util.Map; +import java.util.List; /** * A Java wrapper for a native-code Vamp plugin. Plugins are obtained @@ -293,7 +293,7 @@ * process call. (These do not necessarily have to fall within * the process block, except for OneSamplePerStep outputs.) */ - public TreeMap> + public Map> process(float[][] inputBuffers, RealTime timestamp) { return process(inputBuffers, 0, timestamp); @@ -305,7 +305,7 @@ * avoid potentially having to extract a set of sub-arrays from * longer arrays (fiddly in Java). */ - public native TreeMap> + public native Map> process(float[][] inputBuffers, int offset, RealTime timestamp); @@ -314,7 +314,7 @@ * After all blocks have been processed, calculate and return any * remaining features derived from the complete input. */ - public native TreeMap> + public native Map> getRemainingFeatures(); }