# HG changeset patch # User Chris Cannam # Date 1584634195 0 # Node ID 618326c4ce4b0863511ac6d34c0557601c826654 # Parent 6e218407f0cfa4ee1f6ccad60b4caf1cb3d46eea Use a shared_ptr diff -r 6e218407f0cf -r 618326c4ce4b base/AudioPlaySource.h --- a/base/AudioPlaySource.h Thu Mar 19 16:09:04 2020 +0000 +++ b/base/AudioPlaySource.h Thu Mar 19 16:09:55 2020 +0000 @@ -18,6 +18,8 @@ #include "BaseTypes.h" +#include + struct Auditionable { virtual ~Auditionable() { } }; @@ -101,9 +103,11 @@ /** * Set a plugin or other subclass of Auditionable as an - * auditioning effect. + * auditioning effect. The Auditionable is shared with the caller: + * the expectation is that the caller may continue to modify its + * parameters etc during auditioning. */ - virtual void setAuditioningEffect(Auditionable *) = 0; + virtual void setAuditioningEffect(std::shared_ptr) = 0; };