annotate framework/TransformUserConfigurator.h @ 332:151b7c5864e3 tonioni

Need to call back on handler even when there are no additional layers (because it has not yet learned about the primary layers)
author Chris Cannam
date Wed, 05 Mar 2014 09:45:10 +0000
parents 15057cf59da5
children 0876ea394902
rev   line source
Chris@205 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@205 2
Chris@205 3 /*
Chris@205 4 Sonic Visualiser
Chris@205 5 An audio file viewer and annotation editor.
Chris@205 6 Centre for Digital Music, Queen Mary, University of London.
Chris@205 7
Chris@205 8 This program is free software; you can redistribute it and/or
Chris@205 9 modify it under the terms of the GNU General Public License as
Chris@205 10 published by the Free Software Foundation; either version 2 of the
Chris@205 11 License, or (at your option) any later version. See the file
Chris@205 12 COPYING included with this distribution for more information.
Chris@205 13 */
Chris@205 14
Chris@205 15 #ifndef _TRANSFORM_USER_CONFIGURATOR_H_
Chris@205 16 #define _TRANSFORM_USER_CONFIGURATOR_H_
Chris@205 17
Chris@205 18 #include "transform/ModelTransformerFactory.h"
Chris@205 19
Chris@205 20 class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator
Chris@205 21 {
Chris@205 22 public:
Chris@205 23 // This is of course absolutely gross
Chris@205 24
Chris@205 25 virtual bool configure(ModelTransformer::Input &input,
Chris@205 26 Transform &transform,
Chris@205 27 Vamp::PluginBase *plugin,
Chris@214 28 Model *&inputModel,
Chris@205 29 AudioPlaySource *source,
Chris@205 30 size_t startFrame,
Chris@205 31 size_t duration,
Chris@205 32 const QMap<QString, Model *> &modelMap,
Chris@205 33 QStringList candidateModelNames,
Chris@205 34 QString defaultModelName);
Chris@205 35
Chris@205 36 private:
Chris@205 37 bool getChannelRange(TransformId identifier,
Chris@205 38 Vamp::PluginBase *plugin, int &min, int &max);
Chris@205 39
Chris@205 40 };
Chris@205 41
Chris@205 42 #endif