1 #ifndef __ardour_source_factory_h__
2 #define __ardour_source_factory_h__
6 #include <sigc++/sigc++.h>
7 #include <boost/shared_ptr.hpp>
9 #include <ardour/source.h>
10 #include <ardour/audiofilesource.h>
20 static sigc::signal<void,boost::shared_ptr<Source> > SourceCreated;
22 static boost::shared_ptr<Source> create (Session&, const XMLNode& node);
24 // MIDI sources will have to be hacked in here somehow
25 static boost::shared_ptr<Source> createReadable (Session&, std::string idstr, AudioFileSource::Flag flags, bool announce = true);
26 static boost::shared_ptr<Source> createWritable (Session&, std::string name, bool destructive, nframes_t rate, bool announce = true);
29 static int setup_peakfile (boost::shared_ptr<Source>);
34 #endif /* __ardour_source_factory_h__ */