diff options
Diffstat (limited to 'libs/ardour/element_importer.cc')
-rw-r--r-- | libs/ardour/element_importer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/element_importer.cc b/libs/ardour/element_importer.cc index eb6e39d13a..4438985586 100644 --- a/libs/ardour/element_importer.cc +++ b/libs/ardour/element_importer.cc @@ -35,7 +35,7 @@ using namespace ARDOUR; sigc::signal <std::pair<bool, string>, string, string> ElementImporter::Rename; sigc::signal <bool, string> ElementImporter::Prompt; -ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & session) : +ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & session) : source (source), session(session), _queued (false), @@ -91,7 +91,7 @@ ElementImporter::smpte_to_string(SMPTE::Time & time) const time.seconds << ":" << std::setw(2) << time.frames; - + return oss.str(); } @@ -101,7 +101,7 @@ ElementImporter::rate_convert_samples (nframes_t samples) const if (sample_rate == session.frame_rate()) { return samples; } - + // +0.5 for proper rounding return static_cast<nframes_t> (samples * (static_cast<double> (session.nominal_frame_rate()) / sample_rate) + 0.5); } |