Remove all use of nframes_t.
[ardour.git] / libs / ardour / source_factory.cc
index d09bf05c6e358c3f4babeeb388e7c8c1c41b5cf1..f886f952bdb676ca23fe4650d47115291ddfec3f 100644 (file)
@@ -144,7 +144,6 @@ SourceFactory::create (Session& s, const XMLNode& node, bool defer_peaks)
        if (type == DataType::AUDIO) {
 
                try {
-
                        Source* src = new SndFileSource (s, node);
                        // boost_debug_shared_ptr_mark_interesting (src, "Source");
                        boost::shared_ptr<Source> ret (src);
@@ -257,13 +256,13 @@ SourceFactory::createReadable (DataType type, Session& s, const string& path,
 }
 
 boost::shared_ptr<Source>
-SourceFactory::createWritable (DataType type, Session& s, const std::string& path, 
-                              bool destructive, nframes_t rate, bool announce, bool defer_peaks)
+SourceFactory::createWritable (DataType type, Session& s, const std::string& path, const std::string& origin,
+                              bool destructive, framecnt_t rate, bool announce, bool defer_peaks)
 {
        /* this might throw failed_constructor(), which is OK */
 
        if (type == DataType::AUDIO) {
-               Source* src = new SndFileSource (s, path, 
+               Source* src = new SndFileSource (s, path, origin,
                                s.config.get_native_file_data_format(),
                                s.config.get_native_file_header_format(),
                                rate,