Mercurial > hg > svapp
diff framework/TransformUserConfigurator.cpp @ 739:ddfac001b543 audio-source-refactor
Introduce EffectWrapper for the auditioning effect
author | Chris Cannam |
---|---|
date | Thu, 19 Mar 2020 16:14:02 +0000 |
parents | 7540733f5480 |
children | 846970dbef17 |
line wrap: on
line diff
--- a/framework/TransformUserConfigurator.cpp Wed Mar 18 12:51:41 2020 +0000 +++ b/framework/TransformUserConfigurator.cpp Thu Mar 19 16:14:02 2020 +0000 @@ -109,7 +109,11 @@ if (effect && source) { SVDEBUG << "Setting auditioning effect" << endl; - source->setAuditioningEffect(rtp); + //!!! This requires a shared_ptr, but we don't manage our + //!!! plugin using shared_ptrs yet. Do this as a stopgap. + std::shared_ptr<Auditionable> auditionable + (std::make_shared<bool>(true), rtp); + source->setAuditioningEffect(auditionable); } } else { @@ -229,7 +233,7 @@ delete dialog; if (effect && source) { - source->setAuditioningEffect(nullptr); + source->setAuditioningEffect({}); } return ok;