Mercurial > hg > svapp
comparison framework/TransformUserConfigurator.h @ 746:771ec060c1d2
Merge from branch audio-source-refactor. Pull out auditioning effect wrapper and time stretch wrapper from play source; corresponding changes to plugin memory management etc.
author | Chris Cannam |
---|---|
date | Fri, 03 Apr 2020 12:14:05 +0100 |
parents | 846970dbef17 |
children |
comparison
equal
deleted
inserted
replaced
743:7b1d30af4b38 | 746:771ec060c1d2 |
---|---|
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 |