summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_track.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/audio_track.cc')
-rw-r--r--libs/ardour/audio_track.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc
index 5749afd265..9154747152 100644
--- a/libs/ardour/audio_track.cc
+++ b/libs/ardour/audio_track.cc
@@ -40,7 +40,6 @@
#include <ardour/utils.h>
#include <ardour/buffer_set.h>
#include <ardour/audio_buffer.h>
-#include <ardour/internal_send.h>
#include "i18n.h"
using namespace std;
@@ -66,8 +65,6 @@ AudioTrack::AudioTrack (Session& sess, string name, Route::Flag flag, TrackMode
_session.add_diskstream (ds);
- _session.RouteAdded.connect (mem_fun (*this, &AudioTrack::catch_up_on_busses));
-
set_diskstream (boost::dynamic_pointer_cast<AudioDiskstream> (ds), this);
}
@@ -75,47 +72,12 @@ AudioTrack::AudioTrack (Session& sess, const XMLNode& node)
: Track (sess, node)
{
_set_state (node, false);
-
- _session.RouteAdded.connect (mem_fun (*this, &AudioTrack::catch_up_on_busses));
}
AudioTrack::~AudioTrack ()
{
}
-void
-AudioTrack::catch_up_on_busses (RouteList& added)
-{
- if (is_hidden()) {
- return;
- }
-
- for (RouteList::iterator x = added.begin(); x != added.end(); ++x) {
- if (boost::dynamic_pointer_cast<Track>(*x) == 0 && (*x)->default_type() == DataType::AUDIO) {
- /* Audio bus */
- if (!(*x)->is_master() && !(*x)->is_control()) {
- add_internal_send (*x);
- }
- }
- }
-}
-
-void
-AudioTrack::add_internal_send (boost::shared_ptr<Route> r)
-{
- boost::shared_ptr<InternalSend> is (new InternalSend (_session, PreFader, r));
-
- cerr << name() << " Adding processor\n";
-
- add_processor (is, 0);
-
- cerr << "After add, we have " << _processors.size() << endl;
-
- /* note: if adding failed, the InternalSend will be cleaned up automatically when
- the shared_ptr goes out of scope.
- */
-}
-
int
AudioTrack::set_mode (TrackMode m)
{