summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/strip_silence.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-12-09 16:31:05 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-12-09 16:31:05 +0000
commit0a62044c2c51b38c900ed75d4037e6093901f387 (patch)
tree280b47be28b61f79e8988619ca7026962bd3f457 /libs/ardour/ardour/strip_silence.h
parentd28ecb2b93540e64a7c8dc820dcb6dcedc17a550 (diff)
make strip silence work (again?)
git-svn-id: svn://localhost/ardour2/branches/3.0@8226 d708f5d6-7413-0410-9779-e7cbd77b26cf
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
};