summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/source_factory.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-16 18:08:22 +0000
committerDavid Robillard <d@drobilla.net>2009-02-16 18:08:22 +0000
commit900309993c485527145be4265247bd521073ee61 (patch)
tree29360e453ffe3f7b4c099a199cb2d5d587d14580 /libs/ardour/ardour/source_factory.h
parent80e3845982659b796315a501268478c63ae2f21a (diff)
Move duplicated AudioFileSource::Flags and SMFSource::Flags into Source.
Clean up source stuff. git-svn-id: svn://localhost/ardour2/branches/3.0@4605 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/source_factory.h')
-rw-r--r--libs/ardour/ardour/source_factory.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/libs/ardour/ardour/source_factory.h b/libs/ardour/ardour/source_factory.h
index 7e9be451e8..5370ad845d 100644
--- a/libs/ardour/ardour/source_factory.h
+++ b/libs/ardour/ardour/source_factory.h
@@ -26,13 +26,13 @@
#include <boost/shared_ptr.hpp>
#include <ardour/source.h>
-#include <ardour/audiofilesource.h>
class XMLNode;
namespace ARDOUR {
class Session;
+class AudioSource;
class SourceFactory {
public:
@@ -41,16 +41,18 @@ class SourceFactory {
static sigc::signal<void,boost::shared_ptr<Source> > SourceCreated;
static boost::shared_ptr<Source> create (Session&, const XMLNode& node, bool async = false);
- static boost::shared_ptr<Source> createSilent (Session&, const XMLNode& node, nframes_t nframes, float sample_rate);
+ static boost::shared_ptr<Source> createSilent (Session&, const XMLNode& node,
+ nframes_t nframes, float sample_rate);
- static boost::shared_ptr<Source> createReadable (DataType type, Session&, std::string path, int chn, AudioFileSource::Flag flags,
- bool announce = true, bool async = false);
- static boost::shared_ptr<Source> createWritable (DataType type, Session&, std::string name, bool destructive, nframes_t rate,
- bool announce = true, bool async = false);
+ static boost::shared_ptr<Source> createReadable (DataType type, Session&, std::string path,
+ int chn, Source::Flag flags, bool announce = true, bool async = false);
- static Glib::Cond* PeaksToBuild;
- static Glib::StaticMutex peak_building_lock;
- static std::list<boost::weak_ptr<AudioSource> > files_with_peaks;
+ static boost::shared_ptr<Source> createWritable (DataType type, Session&, std::string name,
+ bool destructive, nframes_t rate, bool announce = true, bool async = false);
+
+ static Glib::Cond* PeaksToBuild;
+ static Glib::StaticMutex peak_building_lock;
+ static std::list< boost::weak_ptr<AudioSource> > files_with_peaks;
static int setup_peakfile (boost::shared_ptr<Source>, bool async);
};