diff --git a/libs/ardour/ardour/internal_return.h b/libs/ardour/ardour/internal_return.h index 3d586df64a..46f63cf7f6 100644 --- a/libs/ardour/ardour/internal_return.h +++ b/libs/ardour/ardour/internal_return.h @@ -2,7 +2,7 @@ * Copyright (C) 2009-2011 David Robillard * Copyright (C) 2009-2012 Carl Hetherington * Copyright (C) 2009-2017 Paul Davis - * Copyright (C) 2013-2017 Robin Gareus + * Copyright (C) 2013-2021 Robin Gareus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,19 +22,19 @@ #ifndef __ardour_internal_return_h__ #define __ardour_internal_return_h__ +#include -#include "ardour/ardour.h" -#include "ardour/return.h" #include "ardour/buffer_set.h" +#include "ardour/processor.h" namespace ARDOUR { class InternalSend; -class LIBARDOUR_API InternalReturn : public Return +class LIBARDOUR_API InternalReturn : public Processor { public: - InternalReturn (Session&); + InternalReturn (Session&, std::string const& name = "Return"); void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool); bool configure_io (ChanCount, ChanCount); diff --git a/libs/ardour/internal_return.cc b/libs/ardour/internal_return.cc index 0ca7a5dec3..54d107f1dc 100644 --- a/libs/ardour/internal_return.cc +++ b/libs/ardour/internal_return.cc @@ -28,8 +28,8 @@ using namespace std; using namespace ARDOUR; -InternalReturn::InternalReturn (Session& s) - : Return (s, true) +InternalReturn::InternalReturn (Session& s, std::string const& name) + : Processor (s, name) { _display_to_user = false; } @@ -83,7 +83,7 @@ InternalReturn::set_playback_offset (samplecnt_t cnt) XMLNode& InternalReturn::state () { - XMLNode& node (Return::state ()); + XMLNode& node (Processor::state ()); /* override type */ node.set_property("type", "intreturn"); return node; @@ -99,6 +99,6 @@ InternalReturn::can_support_io_configuration (const ChanCount& in, ChanCount& ou bool InternalReturn::configure_io (ChanCount in, ChanCount out) { - IOProcessor::configure_io (in, out); + Processor::configure_io (in, out); return true; }