use explicit timepos_t() for region start property in property lists (gui edition)
This commit is contained in:
parent
94afcba111
commit
b451a50b95
|
@ -233,7 +233,7 @@ AudioStreamView::setup_rec_box ()
|
|||
PropertyList plist;
|
||||
|
||||
plist.add (Properties::start, start);
|
||||
plist.add (Properties::length, 1);
|
||||
plist.add (Properties::length, timepos_t (1));
|
||||
plist.add (Properties::name, string());
|
||||
plist.add (Properties::layer, 0);
|
||||
|
||||
|
|
|
@ -916,7 +916,7 @@ Editor::add_sources (vector<string> paths,
|
|||
len = timecnt_t (_session->sample_rate ()) / 2;
|
||||
}
|
||||
|
||||
plist.add (ARDOUR::Properties::start, 0);
|
||||
plist.add (ARDOUR::Properties::start, timepos_t (0));
|
||||
plist.add (ARDOUR::Properties::length, len);
|
||||
plist.add (ARDOUR::Properties::name, region_name);
|
||||
plist.add (ARDOUR::Properties::layer, 0);
|
||||
|
|
|
@ -917,7 +917,7 @@ ExportReport::audition (std::string path, unsigned n_chn, int page)
|
|||
|
||||
PBD::PropertyList plist;
|
||||
|
||||
plist.add (ARDOUR::Properties::start, 0);
|
||||
plist.add (ARDOUR::Properties::start, timepos_t (0));
|
||||
plist.add (ARDOUR::Properties::length, srclist[0]->length ());
|
||||
plist.add (ARDOUR::Properties::name, rname);
|
||||
plist.add (ARDOUR::Properties::layer, 0);
|
||||
|
|
|
@ -1655,11 +1655,14 @@ MidiTimeAxisView::add_region (timepos_t const & f, timecnt_t const & length, boo
|
|||
boost::shared_ptr<Source> src = _session->create_midi_source_by_stealing_name (view()->trackview().track());
|
||||
PropertyList plist;
|
||||
|
||||
plist.add (ARDOUR::Properties::start, 0);
|
||||
const Temporal::timecnt_t start (Temporal::BeatTime); /* zero beats */
|
||||
|
||||
plist.add (ARDOUR::Properties::start, start);
|
||||
plist.add (ARDOUR::Properties::length, length);
|
||||
plist.add (ARDOUR::Properties::name, PBD::basename_nosuffix(src->name()));
|
||||
|
||||
boost::shared_ptr<Region> region = (RegionFactory::create (src, plist));
|
||||
|
||||
region->set_position (pos);
|
||||
playlist()->add_region (region, pos, 1.0, false);
|
||||
_session->add_command (new StatefulDiffCommand (playlist()));
|
||||
|
|
|
@ -511,7 +511,7 @@ SoundFileBox::audition ()
|
|||
|
||||
PropertyList plist;
|
||||
|
||||
plist.add (ARDOUR::Properties::start, 0);
|
||||
plist.add (ARDOUR::Properties::start, timepos_t (Temporal::Beats()));
|
||||
plist.add (ARDOUR::Properties::length, ms->length());
|
||||
plist.add (ARDOUR::Properties::name, rname);
|
||||
plist.add (ARDOUR::Properties::layer, 0);
|
||||
|
@ -560,7 +560,7 @@ SoundFileBox::audition ()
|
|||
|
||||
PropertyList plist;
|
||||
|
||||
plist.add (ARDOUR::Properties::start, 0);
|
||||
plist.add (ARDOUR::Properties::start, timepos_t (0));
|
||||
plist.add (ARDOUR::Properties::length, srclist[0]->length());
|
||||
plist.add (ARDOUR::Properties::name, rname);
|
||||
plist.add (ARDOUR::Properties::layer, 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user