vamp-simple-host.cpp File Reference
#include <vamp-hostsdk/PluginHostAdapter.h>
#include <vamp-hostsdk/PluginInputDomainAdapter.h>
#include <vamp-hostsdk/PluginLoader.h>
#include <iostream>
#include <fstream>
#include <set>
#include <sndfile.h>
#include <cstring>
#include <cstdlib>
#include "system.h"
#include <cmath>
Include dependency graph for vamp-simple-host.cpp:

Go to the source code of this file.

Macros

#define HOST_VERSION   "1.5"
 

Enumerations

enum  Verbosity { PluginIds, PluginOutputIds, PluginInformation, PluginInformationDetailed }
 

Functions

void printFeatures (int, int, const Plugin::OutputDescriptor &, int, const Plugin::FeatureSet &, ofstream *, bool frames)
 
void transformInput (float *, size_t)
 
void fft (unsigned int, bool, double *, double *, double *, double *)
 
void printPluginPath (bool verbose)
 
void printPluginCategoryList ()
 
void enumeratePlugins (Verbosity)
 
void listPluginsInLibrary (string soname)
 
int runPlugin (string myname, string soname, string id, string output, int outputNo, string inputFile, string outfilename, bool frames)
 
void usage (const char *name)
 
int main (int argc, char **argv)
 
static double toSeconds (const RealTime &time)
 
static string header (string text, int level)
 

Macro Definition Documentation

#define HOST_VERSION   "1.5"

Definition at line 74 of file vamp-simple-host.cpp.

Referenced by main().

Enumeration Type Documentation

enum Verbosity
Enumerator
PluginIds 
PluginOutputIds 
PluginInformation 
PluginInformationDetailed 

Definition at line 76 of file vamp-simple-host.cpp.

Function Documentation

void printFeatures ( int  frame,
int  sr,
const Plugin::OutputDescriptor &  output,
int  outputNo,
const Plugin::FeatureSet &  features,
ofstream *  out,
bool  frames 
)

Definition at line 507 of file vamp-simple-host.cpp.

References toSeconds(), and Vamp::RealTime::toString().

Referenced by runPlugin().

void transformInput ( float *  ,
size_t   
)
void fft ( unsigned  int,
bool  ,
double *  ,
double *  ,
double *  ,
double *   
)
void printPluginPath ( bool  verbose)

Definition at line 578 of file vamp-simple-host.cpp.

Referenced by main().

void listPluginsInLibrary ( string  soname)
void usage ( const char *  name)

Definition at line 95 of file vamp-simple-host.cpp.

References PLUGIN_SUFFIX.

Referenced by main().

static double toSeconds ( const RealTime time)
static

Definition at line 501 of file vamp-simple-host.cpp.

References Vamp::RealTime::nsec, and Vamp::RealTime::sec.

Referenced by printFeatures().

static string header ( string  text,
int  level 
)
static

Definition at line 598 of file vamp-simple-host.cpp.

Referenced by enumeratePlugins().