Add dialog to allow removal of plugin presets. Should fix #2662.
[ardour.git] / libs / ardour / transient_detector.cc
index 1eca79e67de454a7433c5c594b616c37b2eb88f4..27abf9a0b39a8a655e9a65b8e9842598180bb66d 100644 (file)
@@ -49,13 +49,13 @@ TransientDetector::use_features (Plugin::FeatureSet& features, ostream* out)
 
        for (Plugin::FeatureList::const_iterator f = fl.begin(); f != fl.end(); ++f) {
 
-               if ((*f).hasTimestamp) {
+               if (f->hasTimestamp) {
 
                        if (out) {
                                (*out) << (*f).timestamp.toString() << endl;
                        }
 
-                       current_results->push_back (RealTime::realTime2Frame ((*f).timestamp, (nframes_t) floor(sample_rate)));
+                       current_results->push_back (RealTime::realTime2Frame (f->timestamp, (framecnt_t) floor(sample_rate)));
                }
        }
 
@@ -91,7 +91,7 @@ TransientDetector::cleanup_transients (AnalysisFeatureList& t, float sr, float g
 
        AnalysisFeatureList::iterator i = t.begin();
        AnalysisFeatureList::iterator f, b;
-       const nframes64_t gap_frames = (nframes64_t) floor (gap_msecs * (sr / 1000.0));
+       const framecnt_t gap_frames = (framecnt_t) floor (gap_msecs * (sr / 1000.0));
 
        while (i != t.end()) {