diff options
author | David Robillard <d@drobilla.net> | 2008-01-10 21:20:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-10 21:20:59 +0000 |
commit | bb457bb960c5bd7ed538f9d31477293415739f68 (patch) | |
tree | 84324a63b87c03589cd165b9e474296eaebb4772 /libs/ardour/ardour/stretch.h | |
parent | 73dd9d37e7d715e0d78c0e51569968f9494dac7f (diff) |
Merge libs/ardour and gtk2_ardour with 2.0-ongoing R2837.
git-svn-id: svn://localhost/ardour2/trunk@2883 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/stretch.h')
-rw-r--r-- | libs/ardour/ardour/stretch.h | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/libs/ardour/ardour/stretch.h b/libs/ardour/ardour/stretch.h index 4d00c9b17b..020d03270d 100644 --- a/libs/ardour/ardour/stretch.h +++ b/libs/ardour/ardour/stretch.h @@ -21,31 +21,46 @@ #define __ardour_stretch_h__ #include <ardour/filter.h> -#include <soundtouch/SoundTouch.h> namespace ARDOUR { + class AudioRegion; +} + +#ifdef USE_RUBBERBAND -class AudioRegion; +#include <ardour/rb_effect.h> + +namespace ARDOUR { -struct TimeStretchRequest : public InterThreadInfo { - float fraction; - bool quick_seek; - bool antialias; +class Stretch : public RBEffect { + public: + Stretch (ARDOUR::Session&, TimeFXRequest&); + ~Stretch() {} }; +} /* namespace */ + +#else + +#include <soundtouch/SoundTouch.h> + +namespace ARDOUR { + class Stretch : public Filter { public: - Stretch (ARDOUR::Session&, TimeStretchRequest&); + Stretch (ARDOUR::Session&, TimeFXRequest&); ~Stretch (); int run (boost::shared_ptr<ARDOUR::Region>); private: - TimeStretchRequest& tsr; - soundtouch::SoundTouch st; + TimeFXRequest& tsr; + soundtouch::SoundTouch st; }; } /* namespace */ +#endif + #endif /* __ardour_stretch_h__ */ |