annotate plugins.cpp @ 11:ccb271dd0b84 tip

More sensible defaults
author Chris Cannam
date Wed, 12 Mar 2014 13:23:29 +0000
parents 4a777e3b515e
children
rev   line source
Chris@7 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@7 2 /*
Chris@7 3 Low-frequency spectrogram
Chris@7 4 Copyright (c) 2014 Queen Mary, University of London
Chris@7 5
Chris@7 6 Permission is hereby granted, free of charge, to any person
Chris@7 7 obtaining a copy of this software and associated documentation
Chris@7 8 files (the "Software"), to deal in the Software without
Chris@7 9 restriction, including without limitation the rights to use, copy,
Chris@7 10 modify, merge, publish, distribute, sublicense, and/or sell copies
Chris@7 11 of the Software, and to permit persons to whom the Software is
Chris@7 12 furnished to do so, subject to the following conditions:
Chris@7 13
Chris@7 14 The above copyright notice and this permission notice shall be
Chris@7 15 included in all copies or substantial portions of the Software.
Chris@7 16
Chris@7 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@7 18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@7 19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Chris@7 20 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
Chris@7 21 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@7 22 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@7 23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@7 24
Chris@7 25 Except as contained in this notice, the names of the Centre for
Chris@7 26 Digital Music; Queen Mary, University of London; and Chris Cannam
Chris@7 27 shall not be used in advertising or otherwise to promote the sale,
Chris@7 28 use or other dealings in this Software without prior written
Chris@7 29 authorization.
Chris@7 30 */
Chris@0 31
Chris@0 32 #include <vamp/vamp.h>
Chris@0 33 #include <vamp-sdk/PluginAdapter.h>
Chris@0 34
Chris@0 35 #include "LowFreq.h"
Chris@0 36
Chris@0 37 static Vamp::PluginAdapter<LowFreq> lowFreqAdapter;
Chris@0 38
Chris@0 39 const VampPluginDescriptor *
Chris@0 40 vampGetPluginDescriptor(unsigned int version, unsigned int index)
Chris@0 41 {
Chris@0 42 if (version < 1) return 0;
Chris@0 43
Chris@0 44 switch (index) {
Chris@0 45 case 0: return lowFreqAdapter.getDescriptor();
Chris@0 46 default: return 0;
Chris@0 47 }
Chris@0 48 }
Chris@0 49
Chris@0 50