summaryrefslogtreecommitdiff
path: root/libs/ardour/internal_return.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-08 14:14:21 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-08 14:14:21 +0000
commit26366a40629693b387331c81ed255116fa8f7f7c (patch)
treeb3ae41bd4270fcc23e8167a3a8c029bf67368082 /libs/ardour/internal_return.cc
parent32c1c8a1c76d68dfb2edb08742a308d24766b96e (diff)
Remove unused buffers and associated support code from
InternalReturn. git-svn-id: svn://localhost/ardour2/branches/3.0@10942 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/internal_return.cc')
-rw-r--r--libs/ardour/internal_return.cc43
1 files changed, 0 insertions, 43 deletions
diff --git a/libs/ardour/internal_return.cc b/libs/ardour/internal_return.cc
index ef38d806ff..568604272b 100644
--- a/libs/ardour/internal_return.cc
+++ b/libs/ardour/internal_return.cc
@@ -30,12 +30,9 @@
using namespace std;
using namespace ARDOUR;
-PBD::Signal1<void, pframes_t> InternalReturn::CycleStart;
-
InternalReturn::InternalReturn (Session& s)
: Return (s, true)
{
- CycleStart.connect_same_thread (*this, boost::bind (&InternalReturn::cycle_start, this, _1));
_display_to_user = false;
}
@@ -57,28 +54,6 @@ InternalReturn::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*e
_active = _pending_active;
}
-bool
-InternalReturn::configure_io (ChanCount in, ChanCount out)
-{
- IOProcessor::configure_io (in, out);
- allocate_buffers (_session.engine().frames_per_cycle());
- return true;
-}
-
-int
-InternalReturn::set_block_size (pframes_t nframes)
-{
- allocate_buffers (nframes);
- return 0;
-}
-
-void
-InternalReturn::allocate_buffers (pframes_t nframes)
-{
- buffers.ensure_buffers (_configured_input, nframes);
- buffers.set_count (_configured_input);
-}
-
void
InternalReturn::add_send (InternalSend* send)
{
@@ -93,16 +68,6 @@ InternalReturn::remove_send (InternalSend* send)
_sends.remove (send);
}
-void
-InternalReturn::cycle_start (pframes_t nframes)
-{
- /* called from process cycle - no lock necessary */
- if (!_sends.empty ()) {
- /* don't bother with this if nobody is going to feed us anything */
- buffers.silence (nframes, 0);
- }
-}
-
XMLNode&
InternalReturn::state (bool full)
{
@@ -118,17 +83,9 @@ InternalReturn::get_state()
return state (true);
}
-int
-InternalReturn::set_state (const XMLNode& node, int version)
-{
- return Return::set_state (node, version);
-}
-
bool
InternalReturn::can_support_io_configuration (const ChanCount& in, ChanCount& out) const
{
out = in;
return true;
}
-
-