frameoffset_t const end_of_region = r->start() + r->length();
- if (last_silence->second != end_of_region - 1) {
+ if (last_silence->second < end_of_region - 1) {
audible.push_back (std::make_pair (last_silence->second, end_of_region - 1));
}
int n = 0;
int const N = audible.size ();
- for (AudioIntervalResult::const_iterator i = audible.begin(); i != audible.end(); ++i) {
+ for (AudioIntervalResult::const_iterator i = audible.begin(); i != audible.end(); ++i, ++n) {
PBD::PropertyList plist;
boost::shared_ptr<AudioRegion> copy;