Chris@0: /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */ Chris@0: Chris@0: /* Chris@0: A waveform viewer and audio annotation editor. Chris@0: Chris Cannam, Queen Mary University of London, 2005 Chris@0: Chris@0: This is experimental software. Not for distribution. Chris@0: */ Chris@0: Chris@0: #include "Transform.h" Chris@0: Chris@0: Transform::Transform(Model *m) : Chris@0: m_input(m), Chris@0: m_output(0), Chris@0: m_detached(false), Chris@0: m_deleting(false) Chris@0: { Chris@0: } Chris@0: Chris@0: Transform::~Transform() Chris@0: { Chris@0: m_deleting = true; Chris@0: wait(); Chris@0: if (!m_detached) delete m_output; Chris@0: } Chris@0: