/*
- Copyright (C) 2007 Paul Davis
+ Copyright (C) 2007 Paul Davis
Author: Dave Robillard
This program is free software; you can redistribute it and/or modify
#define __ardour_filter_h__
#include <vector>
-#include <ardour/region.h>
+
+#include "ardour/types.h"
namespace ARDOUR {
class Region;
class Session;
+class Progress;
class Filter {
public:
virtual ~Filter() {}
- virtual int run (boost::shared_ptr<ARDOUR::Region>) = 0;
+ virtual int run (boost::shared_ptr<ARDOUR::Region>, Progress* progress = 0) = 0;
std::vector<boost::shared_ptr<ARDOUR::Region> > results;
protected:
Filter (ARDOUR::Session& s) : session(s) {}
- int make_new_sources (boost::shared_ptr<ARDOUR::Region>, ARDOUR::SourceList&);
- int finish (boost::shared_ptr<ARDOUR::Region>, ARDOUR::SourceList&);
-
+ int make_new_sources (boost::shared_ptr<ARDOUR::Region>, ARDOUR::SourceList&, std::string suffix = "");
+ int finish (boost::shared_ptr<ARDOUR::Region>, ARDOUR::SourceList&, std::string region_name = "");
+
ARDOUR::Session& session;
};