diff host/vamp-simple-host.cpp @ 43:3bbe244611bb

* Update version number to 1.0, some textual tweaks
author cannam
date Tue, 31 Oct 2006 19:55:47 +0000
parents 1eb2419fc326
children 39be57dd4eb7
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp	Mon Oct 30 10:20:21 2006 +0000
+++ b/host/vamp-simple-host.cpp	Tue Oct 31 19:55:47 2006 +0000
@@ -52,7 +52,7 @@
 using std::string;
 using std::vector;
 
-
+#define HOST_VERSION "1.0"
 
 void printFeatures(int, int, int, Vamp::Plugin::FeatureSet);
 void transformInput(float *, size_t);
@@ -98,11 +98,20 @@
 #endif
             "  " << name << " -p\n\n"
             "    -- Print out the Vamp plugin search path.\n\n"
-            "Note that this host does not use the plugin search path when loading a plugin.\nIf a plugin library is specified, it should be with a full file path.\n"
+	    "  " << name << " -v\n\n"
+	    "    -- Display version information only.\n\n"
+	    "Note that this host does not use the plugin search path when loadinga plugin.\nIf a plugin library is specified, it should be with a full file path.\n"
              << endl;
         return 2;
     }
-
+    
+    if (argc == 2 && !strcmp(argv[1], "-v")) {
+	cout << "Simple Vamp plugin host version: " << HOST_VERSION << endl
+	     << "Vamp API version: " << VAMP_API_VERSION << endl
+	     << "Vamp SDK version: " << VAMP_SDK_VERSION << endl;
+	return 0;
+    }
+    
     if (argc == 2 && !strcmp(argv[1], "-l")) {
 #ifdef HAVE_OPENDIR
         enumeratePlugins();