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 @ 0:89c5d5998cda
History | View | Annotate | Download (468 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 |
|
| 8 |
static Vamp::PluginAdapter<SimpleCepstrum> cepPluginAdapter;
|
| 9 |
|
| 10 |
const VampPluginDescriptor *
|
| 11 |
vampGetPluginDescriptor(unsigned int version, unsigned int index) |
| 12 |
{
|
| 13 |
if (version < 1) return 0; |
| 14 |
|
| 15 |
switch (index) {
|
| 16 |
case 0: return cepPluginAdapter.getDescriptor(); |
| 17 |
default: return 0; |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
|