Mercurial > hg > svapp
comparison framework/TransformUserConfigurator.h @ 205:a3fbd52031a5
* Provide callback for use when configuring a plugin with GUI
author | Chris Cannam |
---|---|
date | Fri, 08 Oct 2010 11:20:10 +0100 |
parents | |
children | 15057cf59da5 |
comparison
equal
deleted
inserted
replaced
204:5ee9e6bc21eb | 205:a3fbd52031a5 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 Sonic Visualiser | |
5 An audio file viewer and annotation editor. | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 | |
8 This program is free software; you can redistribute it and/or | |
9 modify it under the terms of the GNU General Public License as | |
10 published by the Free Software Foundation; either version 2 of the | |
11 License, or (at your option) any later version. See the file | |
12 COPYING included with this distribution for more information. | |
13 */ | |
14 | |
15 #ifndef _TRANSFORM_USER_CONFIGURATOR_H_ | |
16 #define _TRANSFORM_USER_CONFIGURATOR_H_ | |
17 | |
18 #include "transform/ModelTransformerFactory.h" | |
19 | |
20 class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator | |
21 { | |
22 public: | |
23 // This is of course absolutely gross | |
24 | |
25 virtual bool configure(ModelTransformer::Input &input, | |
26 Transform &transform, | |
27 Vamp::PluginBase *plugin, | |
28 Model *inputModel, | |
29 AudioPlaySource *source, | |
30 size_t startFrame, | |
31 size_t duration, | |
32 const QMap<QString, Model *> &modelMap, | |
33 QStringList candidateModelNames, | |
34 QString defaultModelName); | |
35 | |
36 private: | |
37 bool getChannelRange(TransformId identifier, | |
38 Vamp::PluginBase *plugin, int &min, int &max); | |
39 | |
40 }; | |
41 | |
42 #endif |