add lib/LV2 path akin to lib/surfaces, to allow bundling of LV2 plugins in an ardour...
[ardour.git] / libs / ardour / ardour / strip_silence.h
index 217f6b3d8a8bdafa5b9f1d8cc03c4ca5be69a366..eed43201739756a56e42e15da07a222e3f6749db 100644 (file)
 namespace ARDOUR {
 
 /// A filter to strip silence from regions
-class StripSilence : public Filter {
+class StripSilence : public Filter
+{
+  public:
+       StripSilence (Session &, const AudioIntervalMap&, framecnt_t fade_length);
 
-public:
-       StripSilence (Session &, double, nframes_t, nframes_t);
-
-       int run (boost::shared_ptr<ARDOUR::Region>);
+       int run (boost::shared_ptr<ARDOUR::Region>, Progress* progress = 0);
 
 private:
-       double _threshold; ///< silence threshold, in dBFS
-       nframes_t _minimum_length; ///< minimum length to be considered silence, in samples
-       nframes_t _fade_length; ///< fade in/out to use on trimmed regions, in samples
+       const AudioIntervalMap& _smap;
+       framecnt_t _fade_length; ///< fade in/out to use on trimmed regions, in samples
 };
 
 }