X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Felement_importer.cc;h=4f635f1693ccef28b51afc745a23a98e37e84f99;hb=97a537cd2138dea1c64d01c5a0fa0f9335893c19;hp=eb6e39d13ab643f283d905df7b6cbe39a3ce75e0;hpb=3b89d9eaa03406a5e03648f47734211f09b89d62;p=ardour.git diff --git a/libs/ardour/element_importer.cc b/libs/ardour/element_importer.cc index eb6e39d13a..4f635f1693 100644 --- a/libs/ardour/element_importer.cc +++ b/libs/ardour/element_importer.cc @@ -32,10 +32,10 @@ using namespace std; using namespace PBD; using namespace ARDOUR; -sigc::signal , string, string> ElementImporter::Rename; -sigc::signal ElementImporter::Prompt; +Signal2,string, string> ElementImporter::Rename; +Signal1 ElementImporter::Prompt; -ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & session) : +ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & session) : source (source), session(session), _queued (false), @@ -79,7 +79,7 @@ ElementImporter::cancel_move () } string -ElementImporter::smpte_to_string(SMPTE::Time & time) const +ElementImporter::timecode_to_string(Timecode::Time & time) const { std::ostringstream oss; oss << std::setfill('0') << std::right << @@ -91,19 +91,19 @@ ElementImporter::smpte_to_string(SMPTE::Time & time) const time.seconds << ":" << std::setw(2) << time.frames; - + return oss.str(); } -nframes_t -ElementImporter::rate_convert_samples (nframes_t samples) const +framecnt_t +ElementImporter::rate_convert_samples (framecnt_t samples) const { if (sample_rate == session.frame_rate()) { return samples; } - + // +0.5 for proper rounding - return static_cast (samples * (static_cast (session.nominal_frame_rate()) / sample_rate) + 0.5); + return static_cast (samples * (static_cast (session.nominal_frame_rate()) / sample_rate) + 0.5); } string