namespace ARDOUR {
/// A filter to strip silence from regions
-class StripSilence : public Filter {
-
-public:
- StripSilence (Session &, double, framecnt_t, framecnt_t);
+class LIBARDOUR_API StripSilence : public Filter
+{
+ public:
+ StripSilence (Session &, const AudioIntervalMap&, samplecnt_t fade_length);
int run (boost::shared_ptr<ARDOUR::Region>, Progress* progress = 0);
private:
- double _threshold; ///< silence threshold, in dBFS
- framecnt_t _minimum_length; ///< minimum length to be considered silence, in samples
- framecnt_t _fade_length; ///< fade in/out to use on trimmed regions, in samples
+ const AudioIntervalMap& _smap;
+ samplecnt_t _fade_length; ///< fade in/out to use on trimmed regions, in samples
};
}