Reduce InternalReturn inheritance
InternalReturn makes no use of Return or IOProcessor methods or members. It is a truly independent Processor.
This commit is contained in:
parent
7d3d64512c
commit
4f87d59576
@ -2,7 +2,7 @@
|
||||
* Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
|
||||
* Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
|
||||
* Copyright (C) 2009-2017 Paul Davis <paul@linuxaudiosystems.com>
|
||||
* Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
|
||||
* Copyright (C) 2013-2021 Robin Gareus <robin@gareus.org>
|
||||
*
|
||||
* 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 <list>
|
||||
|
||||
#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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user