annotate src/rubberband-1.8.1/vamp/libmain.cpp @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 89f5e221ed7b
children
rev   line source
cannam@95 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
cannam@95 2
cannam@95 3 /*
cannam@95 4 Rubber Band Library
cannam@95 5 An audio time-stretching and pitch-shifting library.
cannam@95 6 Copyright 2007-2012 Particular Programs Ltd.
cannam@95 7
cannam@95 8 This program is free software; you can redistribute it and/or
cannam@95 9 modify it under the terms of the GNU General Public License as
cannam@95 10 published by the Free Software Foundation; either version 2 of the
cannam@95 11 License, or (at your option) any later version. See the file
cannam@95 12 COPYING included with this distribution for more information.
cannam@95 13
cannam@95 14 Alternatively, if you have a valid commercial licence for the
cannam@95 15 Rubber Band Library obtained by agreement with the copyright
cannam@95 16 holders, you may redistribute and/or modify it under the terms
cannam@95 17 described in that licence.
cannam@95 18
cannam@95 19 If you wish to distribute code using the Rubber Band Library
cannam@95 20 under terms other than those of the GNU General Public License,
cannam@95 21 you must obtain a valid commercial licence before doing so.
cannam@95 22 */
cannam@95 23
cannam@95 24 #include <vamp/vamp.h>
cannam@95 25 #include <vamp-sdk/PluginAdapter.h>
cannam@95 26
cannam@95 27 #include "RubberBandVampPlugin.h"
cannam@95 28
cannam@95 29 static Vamp::PluginAdapter<RubberBandVampPlugin> rubberBandAdapter;
cannam@95 30
cannam@95 31 const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int version,
cannam@95 32 unsigned int index)
cannam@95 33 {
cannam@95 34 if (version < 1) return 0;
cannam@95 35
cannam@95 36 switch (index) {
cannam@95 37 case 0: return rubberBandAdapter.getDescriptor();
cannam@95 38 default: return 0;
cannam@95 39 }
cannam@95 40 }
cannam@95 41