To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / libmain.cpp @ 3:9366c8a58778
History | View | Annotate | Download (631 Bytes)
| 1 |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
|---|---|
| 2 |
|
| 3 |
#include <vamp/vamp.h> |
| 4 |
#include <vamp-sdk/PluginAdapter.h> |
| 5 |
|
| 6 |
#include "SimpleCepstrum.h" |
| 7 |
#include "CepstrumPitchTracker.h" |
| 8 |
|
| 9 |
static Vamp::PluginAdapter<SimpleCepstrum> cepPluginAdapter;
|
| 10 |
static Vamp::PluginAdapter<CepstrumPitchTracker> cepitchPluginAdapter;
|
| 11 |
|
| 12 |
const VampPluginDescriptor *
|
| 13 |
vampGetPluginDescriptor(unsigned int version, unsigned int index) |
| 14 |
{
|
| 15 |
if (version < 1) return 0; |
| 16 |
|
| 17 |
switch (index) {
|
| 18 |
case 0: return cepPluginAdapter.getDescriptor(); |
| 19 |
case 1: return cepitchPluginAdapter.getDescriptor(); |
| 20 |
default: return 0; |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
|