summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/strip_silence.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/strip_silence.h')
-rw-r--r--libs/ardour/ardour/strip_silence.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/ardour/ardour/strip_silence.h b/libs/ardour/ardour/strip_silence.h
index 91374be88a..ff1d1b7f17 100644
--- a/libs/ardour/ardour/strip_silence.h
+++ b/libs/ardour/ardour/strip_silence.h
@@ -22,16 +22,15 @@
namespace ARDOUR {
/// A filter to strip silence from regions
-class StripSilence : public Filter {
-
-public:
- StripSilence (Session &, double, framecnt_t, framecnt_t);
+class StripSilence : public Filter
+{
+ public:
+ StripSilence (Session &, const AudioIntervalMap&, framecnt_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
+ AudioIntervalMap _smap;
framecnt_t _fade_length; ///< fade in/out to use on trimmed regions, in samples
};