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);
23 static boost::shared_ptr<Source> createSilent (Session&, const XMLNode& node, nframes_t nframes, float sample_rate);
25 static boost::shared_ptr<Source> createReadable (DataType type, Session&, std::string path, int chn, AudioFileSource::Flag flags, bool announce = true);
26 static boost::shared_ptr<Source> createWritable (DataType type, 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__ */