diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-23 12:25:22 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-23 12:25:22 +0000 |
commit | f850ca1ba26e931bf4287eb95cb46a014fe33ccd (patch) | |
tree | 4b1ed3ae4267de12c6dc5a87b0ba4e66fc1c83fc /libs/ardour | |
parent | f0def9bb888f5698796447b893b52ed0544c12e3 (diff) |
ardour_system.rc now has the same content as ardour.rc, to allow us to more easily add new variable/parameters when updating a user's configuration
git-svn-id: svn://localhost/ardour2/trunk@1739 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/audio_playlist.cc | 4 | ||||
-rw-r--r-- | libs/ardour/session_command.cc | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/audio_playlist.cc b/libs/ardour/audio_playlist.cc index 501482c840..1a7405dbd3 100644 --- a/libs/ardour/audio_playlist.cc +++ b/libs/ardour/audio_playlist.cc @@ -30,6 +30,7 @@ #include <ardour/crossfade.h> #include <ardour/crossfade_compare.h> #include <ardour/session.h> +#include <pbd/enumwriter.h> #include "i18n.h" @@ -381,6 +382,7 @@ AudioPlaylist::check_dependents (boost::shared_ptr<Region> r, bool norefresh) } + OverlapType c = top->coverage (bottom->position(), bottom->last_frame()); try { @@ -411,7 +413,7 @@ AudioPlaylist::check_dependents (boost::shared_ptr<Region> r, bool norefresh) xfade = boost::shared_ptr<Crossfade> (new Crossfade (top, bottom, xfade_length, top->first_frame(), StartOfIn)); add_crossfade (xfade); - + if (top_region_at (top->last_frame() - 1) == top) { /* only add a fade out if there is no region on top of the end of 'top' (which diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index 53d01219b1..d7fc80aa4b 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -79,8 +79,11 @@ Session::memento_command_factory(XMLNode *n) /* create command */ string obj_T = n->property ("type_name")->value(); if (obj_T == typeid (AudioRegion).name() || obj_T == typeid (Region).name()) { - if (audio_regions.count(id)) + if (audio_regions.count(id)) { return new MementoCommand<AudioRegion>(*audio_regions[id], before, after); + } else { + cerr << "count failed for " << id << " though we have " << audio_regions.size() << endl; + } } else if (obj_T == typeid (AudioSource).name()) { if (audio_sources.count(id)) return new MementoCommand<AudioSource>(*audio_sources[id], before, after); @@ -105,6 +108,7 @@ Session::memento_command_factory(XMLNode *n) /* we failed */ error << string_compose (_("could not reconstitute MementoCommand from XMLNode. object type = %1 id = %2"), obj_T, id.to_s()) << endmsg; + return 0 ; } |