diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-29 20:02:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-29 20:02:43 +0000 |
commit | 9e8082aad6645f67cb18ea608abb6a854fd268d0 (patch) | |
tree | 4b6c7cfe6e8171d26d4c33287bbb259ed252c8b8 /libs | |
parent | 433f2cfb437e189a5114338c70967815a6d9d02a (diff) |
small change to region creation for make-mono-regions; add untested short_path(); fix double-redraws when canvas zoom/position changes
git-svn-id: svn://localhost/ardour2/trunk@1396 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/audioregion.cc | 9 | ||||
-rw-r--r-- | libs/ardour/sndfilesource.cc | 2 | ||||
-rw-r--r-- | libs/pbd/stacktrace.cc | 6 |
3 files changed, 13 insertions, 4 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 9f76b0f19e..bc66f0d6b0 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -1051,10 +1051,15 @@ AudioRegion::separate_by_channel (Session& session, vector<boost::shared_ptr<Aud new_name += ('0' + n + 1); } - /* create a copy with just one source */ + /* create a copy with just one source. prevent if from being thought of as "whole file" even if + it covers the entire source file(s). + */ + + Flag f = Flag (_flags & ~WholeFile); - boost::shared_ptr<Region> r = RegionFactory::create (srcs, _start, _length, new_name, _layer, _flags); + boost::shared_ptr<Region> r = RegionFactory::create (srcs, _start, _length, new_name, _layer, f); boost::shared_ptr<AudioRegion> ar = boost::dynamic_pointer_cast<AudioRegion> (r); + cerr << "new region name is " << ar->name() << endl; v.push_back (ar); diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 850aa6bc6c..629b3e4158 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -50,8 +50,6 @@ SndFileSource::SndFileSource (Session& s, const XMLNode& node) { init (); - cerr << "SndFileSource @ " << _path << " channel = " << channel << endl; - if (open()) { throw failed_constructor (); } diff --git a/libs/pbd/stacktrace.cc b/libs/pbd/stacktrace.cc index a653fe3033..82a78c6fe2 100644 --- a/libs/pbd/stacktrace.cc +++ b/libs/pbd/stacktrace.cc @@ -39,4 +39,10 @@ PBD::stacktrace (std::ostream& out, int levels) out << "stack tracing is not enabled on this platform" << std::endl; } +void +c_stacktrace () +{ + PBD::stacktrace (cout); +} + #endif /* HAVE_EXECINFO */ |