annotate src/rubberband-1.8.1/vamp/RubberBandVampPlugin.h @ 23:619f715526df sv_v2.1

Update Vamp plugin SDK to 2.5
author Chris Cannam
date Thu, 09 May 2013 10:52:46 +0100
parents 37bf6b4a2645
children
rev   line source
Chris@10 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@10 2
Chris@10 3 /*
Chris@10 4 Rubber Band Library
Chris@10 5 An audio time-stretching and pitch-shifting library.
Chris@10 6 Copyright 2007-2012 Particular Programs Ltd.
Chris@10 7
Chris@10 8 This program is free software; you can redistribute it and/or
Chris@10 9 modify it under the terms of the GNU General Public License as
Chris@10 10 published by the Free Software Foundation; either version 2 of the
Chris@10 11 License, or (at your option) any later version. See the file
Chris@10 12 COPYING included with this distribution for more information.
Chris@10 13
Chris@10 14 Alternatively, if you have a valid commercial licence for the
Chris@10 15 Rubber Band Library obtained by agreement with the copyright
Chris@10 16 holders, you may redistribute and/or modify it under the terms
Chris@10 17 described in that licence.
Chris@10 18
Chris@10 19 If you wish to distribute code using the Rubber Band Library
Chris@10 20 under terms other than those of the GNU General Public License,
Chris@10 21 you must obtain a valid commercial licence before doing so.
Chris@10 22 */
Chris@10 23
Chris@10 24 #ifndef _RUBBERBAND_VAMP_PLUGIN_H_
Chris@10 25 #define _RUBBERBAND_VAMP_PLUGIN_H_
Chris@10 26
Chris@10 27 #include <vamp-sdk/Plugin.h>
Chris@10 28
Chris@10 29 #include "RubberBandStretcher.h"
Chris@10 30
Chris@10 31 class RubberBandVampPlugin : public Vamp::Plugin
Chris@10 32 {
Chris@10 33 public:
Chris@10 34 RubberBandVampPlugin(float inputSampleRate);
Chris@10 35 virtual ~RubberBandVampPlugin();
Chris@10 36
Chris@10 37 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
Chris@10 38 void reset();
Chris@10 39
Chris@10 40 InputDomain getInputDomain() const { return TimeDomain; }
Chris@10 41
Chris@10 42 std::string getIdentifier() const;
Chris@10 43 std::string getName() const;
Chris@10 44 std::string getDescription() const;
Chris@10 45 std::string getMaker() const;
Chris@10 46 int getPluginVersion() const;
Chris@10 47 std::string getCopyright() const;
Chris@10 48
Chris@10 49 ParameterList getParameterDescriptors() const;
Chris@10 50 float getParameter(std::string id) const;
Chris@10 51 void setParameter(std::string id, float value);
Chris@10 52
Chris@10 53 OutputList getOutputDescriptors() const;
Chris@10 54
Chris@10 55 FeatureSet process(const float *const *inputBuffers,
Chris@10 56 Vamp::RealTime timestamp);
Chris@10 57
Chris@10 58 FeatureSet getRemainingFeatures();
Chris@10 59
Chris@10 60 protected:
Chris@10 61 class Impl;
Chris@10 62 Impl *m_d;
Chris@10 63 };
Chris@10 64
Chris@10 65 #endif