summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/crossfade.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-10 16:19:13 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-10 16:19:13 +0000
commit1c167454eb2d498ed0ed453136ad3042aee0b556 (patch)
tree56b889a392cd0f9295359116d03c973a91ef881a /libs/ardour/ardour/crossfade.h
parentc9fd6da8b184831565fc74dd6a828596f5d77840 (diff)
fix xfade logic and use shared_ptr for xfades
git-svn-id: svn://localhost/ardour2/trunk@1297 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/crossfade.h')
-rw-r--r--libs/ardour/ardour/crossfade.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/ardour/crossfade.h b/libs/ardour/ardour/crossfade.h
index 0422698c5e..946d35b8e0 100644
--- a/libs/ardour/ardour/crossfade.h
+++ b/libs/ardour/ardour/crossfade.h
@@ -24,6 +24,7 @@
#include <vector>
#include <algorithm>
#include <boost/shared_ptr.hpp>
+#include <boost/enable_shared_from_this.hpp>
#include <sigc++/signal.h>
@@ -40,7 +41,7 @@ namespace ARDOUR {
class AudioRegion;
class Playlist;
-class Crossfade : public PBD::StatefulDestructible
+class Crossfade : public PBD::StatefulDestructible, public boost::enable_shared_from_this<ARDOUR::Crossfade>
{
public:
@@ -111,7 +112,7 @@ class Crossfade : public PBD::StatefulDestructible
void invalidate();
- sigc::signal<void,Crossfade*> Invalidated;
+ sigc::signal<void,boost::shared_ptr<Crossfade> > Invalidated;
sigc::signal<void,Change> StateChanged;
bool covers (nframes_t frame) const {