Mercurial > hg > jvamp
comparison org/vamp_plugins/test.java @ 5:8a0ac3d6903d
Fill in some more function definitions, including a getInputDomain that actually returns an enum! Woo
author | Chris Cannam |
---|---|
date | Mon, 23 Jan 2012 23:00:33 +0000 |
parents | f718b0961713 |
children | 3dd55efc53ca |
comparison
equal
deleted
inserted
replaced
4:56f6a97745cf | 5:8a0ac3d6903d |
---|---|
14 Plugin p = loader.loadPlugin(key, 44100); | 14 Plugin p = loader.loadPlugin(key, 44100); |
15 System.out.println("identifier: " + p.getIdentifier() + "; " + | 15 System.out.println("identifier: " + p.getIdentifier() + "; " + |
16 "name: " + p.getName() + "; " + | 16 "name: " + p.getName() + "; " + |
17 "description: " + p.getDescription() + "; " + | 17 "description: " + p.getDescription() + "; " + |
18 "version: " + p.getPluginVersion()); | 18 "version: " + p.getPluginVersion()); |
19 Plugin.InputDomain domain = p.getInputDomain(); | |
20 if (domain == Plugin.InputDomain.TimeDomain) { | |
21 System.out.println("This is a time-domain plugin"); | |
22 } else { | |
23 System.out.println("This is a frequency-domain plugin"); | |
24 } | |
19 } catch (PluginLoader.LoadFailedException e) { | 25 } catch (PluginLoader.LoadFailedException e) { |
20 System.out.println("Plugin load failed"); | 26 System.out.println("Plugin load failed"); |
21 } | 27 } |
22 } | 28 } |
23 } | 29 } |