X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fstrip_silence.h;h=eed43201739756a56e42e15da07a222e3f6749db;hb=df59a000b79f891f17ec8a05b390982dac67e5ff;hp=dab3ddd3d5bd9de0b39ce3d36adcedc634c03a8b;hpb=9e776feac62e7a9609a29fa233f21d5278475a9d;p=ardour.git diff --git a/libs/ardour/ardour/strip_silence.h b/libs/ardour/ardour/strip_silence.h index dab3ddd3d5..eed4320173 100644 --- a/libs/ardour/ardour/strip_silence.h +++ b/libs/ardour/ardour/strip_silence.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2009 Paul Davis + Copyright (C) 2009 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,18 +21,17 @@ namespace ARDOUR { -/// A filter to strip silence from regions -class StripSilence : public Filter { +/// A filter to strip silence from regions +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); + int run (boost::shared_ptr, 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 }; }