mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Move Diskstream ownership to Track, so that Session no longer holds lists of Diskstreams. Breaks 3.0 file format again.
git-svn-id: svn://localhost/ardour2/branches/3.0@6945 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d9cebc2edf
commit
061a85191c
65 changed files with 1239 additions and 944 deletions
|
|
@ -50,9 +50,7 @@
|
|||
#include "ardour/session.h"
|
||||
#include "ardour/audioengine.h"
|
||||
#include "ardour/audio_track.h"
|
||||
#include "ardour/audio_diskstream.h"
|
||||
#include "ardour/midi_track.h"
|
||||
#include "ardour/midi_diskstream.h"
|
||||
#include "ardour/template_utils.h"
|
||||
#include "ardour/filename_extensions.h"
|
||||
#include "ardour/directory_names.h"
|
||||
|
|
@ -221,7 +219,7 @@ RouteUI::set_route (boost::shared_ptr<Route> rp)
|
|||
if (_session->writable() && is_track()) {
|
||||
boost::shared_ptr<Track> t = boost::dynamic_pointer_cast<Track>(_route);
|
||||
|
||||
t->diskstream()->RecordEnableChanged.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::route_rec_enable_changed, this), gui_context());
|
||||
t->RecordEnableChanged.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::route_rec_enable_changed, this), gui_context());
|
||||
|
||||
rec_enable_button->show();
|
||||
rec_enable_button->set_controllable (t->rec_enable_control());
|
||||
|
|
@ -1328,18 +1326,6 @@ RouteUI::midi_track() const
|
|||
return boost::dynamic_pointer_cast<MidiTrack>(_route);
|
||||
}
|
||||
|
||||
boost::shared_ptr<Diskstream>
|
||||
RouteUI::get_diskstream () const
|
||||
{
|
||||
boost::shared_ptr<Track> t;
|
||||
|
||||
if ((t = boost::dynamic_pointer_cast<Track>(_route)) != 0) {
|
||||
return t->diskstream();
|
||||
} else {
|
||||
return boost::shared_ptr<Diskstream> ((Diskstream*) 0);
|
||||
}
|
||||
}
|
||||
|
||||
string
|
||||
RouteUI::name() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue