mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 01:17:42 +01:00
megaopus commit: (1) add __STD_(LIMIT|FORMAT)_MACROS to command line flags for cc and c++ builds, remove them from source (2) add new Property::midi_data used by MidiRegion to signal that its (MIDI) contents have changed (3) massive switch from nframes_t to framepos_t/framecnt_t including removal of ARDOUR::max_frames (replaced by ARDOUR::max_frame{pos,cnt} (lots more to do but this set was driven by changes to the Diskstream API to use framepos_t
git-svn-id: svn://localhost/ardour2/branches/3.0@7791 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e84c3fe555
commit
10bdce85a0
63 changed files with 384 additions and 347 deletions
|
|
@ -68,14 +68,14 @@ TimeSelection::consolidate ()
|
|||
return changed;
|
||||
}
|
||||
|
||||
nframes_t
|
||||
framepos_t
|
||||
TimeSelection::start ()
|
||||
{
|
||||
if (empty()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
nframes_t first = max_frames;
|
||||
framepos_t first = max_framepos;
|
||||
|
||||
for (std::list<AudioRange>::iterator i = begin(); i != end(); ++i) {
|
||||
if ((*i).start < first) {
|
||||
|
|
@ -85,10 +85,10 @@ TimeSelection::start ()
|
|||
return first;
|
||||
}
|
||||
|
||||
nframes_t
|
||||
framepos_t
|
||||
TimeSelection::end_frame ()
|
||||
{
|
||||
nframes_t last = 0;
|
||||
framepos_t last = 0;
|
||||
|
||||
/* XXX make this work like RegionSelection: no linear search needed */
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ TimeSelection::end_frame ()
|
|||
return last;
|
||||
}
|
||||
|
||||
nframes_t
|
||||
framecnt_t
|
||||
TimeSelection::length()
|
||||
{
|
||||
return end_frame() - start() + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue