#ifndef __ardour_source_factory_h__ #define __ardour_source_factory_h__ #include #include #include #include #include #include class XMLNode; namespace ARDOUR { class Session; class SourceFactory { public: static sigc::signal > SourceCreated; static boost::shared_ptr create (Session&, const XMLNode& node); // MIDI sources will have to be hacked in here somehow static boost::shared_ptr createReadable (DataType type, Session&, std::string idstr, AudioFileSource::Flag flags, bool announce = true); static boost::shared_ptr createWritable (DataType type, Session&, std::string name, bool destructive, nframes_t rate, bool announce = true); private: static int setup_peakfile (boost::shared_ptr); }; } #endif /* __ardour_source_factory_h__ */