Step towards having both rubberband and soundtouch compiled in at once.
git-svn-id: svn://localhost/ardour2/branches/3.0@4697 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
60b0022d75
commit
9f77cd9e19
|
@ -420,7 +420,11 @@ Editor::do_timefx (TimeFXDialog& dialog)
|
|||
if (dialog.pitching) {
|
||||
fx = new Pitch (*session, dialog.request);
|
||||
} else {
|
||||
fx = new Stretch (*session, dialog.request);
|
||||
#ifdef USE_RUBBERBAND
|
||||
fx = new RBStretch (*session, dialog.request);
|
||||
#else
|
||||
fx = new STStretch (*session, dialog.request);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (fx->run (region)) {
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
|
||||
namespace ARDOUR {
|
||||
|
||||
class Stretch : public RBEffect {
|
||||
class RBStretch : public RBEffect {
|
||||
public:
|
||||
Stretch (ARDOUR::Session&, TimeFXRequest&);
|
||||
~Stretch() {}
|
||||
RBStretch (ARDOUR::Session&, TimeFXRequest&);
|
||||
~RBStretch() {}
|
||||
};
|
||||
|
||||
} /* namespace */
|
||||
|
@ -42,10 +42,10 @@ class Stretch : public RBEffect {
|
|||
|
||||
namespace ARDOUR {
|
||||
|
||||
class Stretch : public Filter {
|
||||
class STStretch : public Filter {
|
||||
public:
|
||||
Stretch (ARDOUR::Session&, TimeFXRequest&);
|
||||
~Stretch ();
|
||||
STStretch (ARDOUR::Session&, TimeFXRequest&);
|
||||
~STStretch ();
|
||||
|
||||
int run (boost::shared_ptr<ARDOUR::Region>);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ Pitch::Pitch (Session& s, TimeFXRequest& req)
|
|||
{
|
||||
}
|
||||
|
||||
Stretch::Stretch (Session& s, TimeFXRequest& req)
|
||||
RBStretch::RBStretch (Session& s, TimeFXRequest& req)
|
||||
: RBEffect (s, req)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ using namespace ARDOUR;
|
|||
using namespace PBD;
|
||||
using namespace soundtouch;
|
||||
|
||||
Stretch::Stretch (Session& s, TimeFXRequest& req)
|
||||
STStretch::STStretch (Session& s, TimeFXRequest& req)
|
||||
: Filter (s)
|
||||
, tsr (req)
|
||||
{
|
||||
|
@ -59,12 +59,12 @@ Stretch::Stretch (Session& s, TimeFXRequest& req)
|
|||
tsr.progress = 0.0f;
|
||||
}
|
||||
|
||||
Stretch::~Stretch ()
|
||||
STStretch::~STStretch ()
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
Stretch::run (boost::shared_ptr<Region> a_region)
|
||||
STStretch::run (boost::shared_ptr<Region> a_region)
|
||||
{
|
||||
SourceList nsrcs;
|
||||
nframes_t total_frames;
|
||||
|
|
Loading…
Reference in New Issue
Block a user