diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-02-18 13:59:49 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-02-18 13:59:49 +0000 |
commit | ce7a5e1c9fa3edf2d9cc66875505e402a0aaa6f6 (patch) | |
tree | 8a798270cd892823c7eeef99c2f3cdd4bf657bb3 /libs/ardour/strip_silence.cc | |
parent | cdcc4d3720d8168a158f6a5a5f23e9ce981bc68c (diff) |
the Properties & 64bit region commit
git-svn-id: svn://localhost/ardour2/branches/3.0@6695 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/strip_silence.cc')
-rw-r--r-- | libs/ardour/strip_silence.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/strip_silence.cc b/libs/ardour/strip_silence.cc index 256e06eccf..0f58ccf9a3 100644 --- a/libs/ardour/strip_silence.cc +++ b/libs/ardour/strip_silence.cc @@ -52,7 +52,7 @@ StripSilence::run (boost::shared_ptr<Region> r) } /* find periods of silence in the region */ - std::list<std::pair<nframes_t, nframes_t> > const silence = + std::list<std::pair<frameoffset_t, framecnt_t> > const silence = region->find_silence (dB_to_coefficient (_threshold), _minimum_length); if (silence.size () == 1 && silence.front().first == 0 && silence.front().second == region->length() - 1) { @@ -66,10 +66,10 @@ StripSilence::run (boost::shared_ptr<Region> r) return 0; } - std::list<std::pair<nframes_t, nframes_t > >::const_iterator s = silence.begin (); - nframes_t const pos = region->position (); - nframes_t const end = region->start () + region->length() - 1; - nframes_t const start = region->start (); + std::list<std::pair<framepos_t, framecnt_t > >::const_iterator s = silence.begin (); + framepos_t const pos = region->position (); + framepos_t const end = region->start () + region->length() - 1; + framepos_t const start = region->start (); region = boost::dynamic_pointer_cast<AudioRegion> (RegionFactory::create (region)); region->set_name (session.new_region_name (region->name ())); |