comparison framework/TransformUserConfigurator.h @ 751:ed5db7d37005 pitch-align

Merge from default branch
author Chris Cannam
date Wed, 22 Apr 2020 17:40:09 +0100
parents 846970dbef17
children
comparison
equal deleted inserted replaced
744:36772d79cf44 751:ed5db7d37005
15 #ifndef SV_TRANSFORM_USER_CONFIGURATOR_H 15 #ifndef SV_TRANSFORM_USER_CONFIGURATOR_H
16 #define SV_TRANSFORM_USER_CONFIGURATOR_H 16 #define SV_TRANSFORM_USER_CONFIGURATOR_H
17 17
18 #include "transform/ModelTransformerFactory.h" 18 #include "transform/ModelTransformerFactory.h"
19 19
20 #include <memory>
21
20 class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator 22 class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator
21 { 23 {
22 public: 24 public:
23 // This is of course absolutely gross 25 // This is of course absolutely gross
24 26
25 bool configure(ModelTransformer::Input &input, 27 bool configure(ModelTransformer::Input &input,
26 Transform &transform, 28 Transform &transform,
27 Vamp::PluginBase *plugin, 29 std::shared_ptr<Vamp::PluginBase> plugin,
28 ModelId &inputModel, 30 ModelId &inputModel,
29 AudioPlaySource *source, 31 AudioPlaySource *source,
30 sv_frame_t startFrame, 32 sv_frame_t startFrame,
31 sv_frame_t duration, 33 sv_frame_t duration,
32 const QMap<QString, ModelId> &modelMap, 34 const QMap<QString, ModelId> &modelMap,
35 37
36 static void setParentWidget(QWidget *); 38 static void setParentWidget(QWidget *);
37 39
38 private: 40 private:
39 bool getChannelRange(TransformId identifier, 41 bool getChannelRange(TransformId identifier,
40 Vamp::PluginBase *plugin, int &min, int &max); 42 std::shared_ptr<Vamp::PluginBase> plugin,
43 int &min, int &max);
41 44
42 }; 45 };
43 46
44 #endif 47 #endif