diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-13 00:26:28 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-13 00:26:28 +0000 |
commit | 88beef2e93d26d28467fe151f5ef2972d0ca9169 (patch) | |
tree | ca2460f7e8fa7dd87d2ba79301d8aa8fc7314479 /libs/ardour/location.cc | |
parent | 402cc384ced6cb152c8abe4294009fe0de0a6dea (diff) |
merge pre- and post-fader processor boxes; start removing Placement (not finished) ; add -DWAF_BUILD and use per-directory foobar-config.h to correctly pick up configure-time settings like HAVE_OGG ; check for libgiomm (part of upgrade to newer gtk stack); 32 bit marker reload fix from 2.X; audiounit IO config cache fix from 2.X; multi-add route template fix from 2.X; plugin GUI delete fix from 2.X; solo button labels are A or P for listen mode
git-svn-id: svn://localhost/ardour2/branches/3.0@5344 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r-- | libs/ardour/location.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index dd32da2628..f6678966e4 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -88,7 +88,7 @@ Location::operator= (const Location& other) } int -Location::set_start (nframes_t s) +Location::set_start (nframes64_t s) { if (_locked) { return -1; @@ -129,7 +129,7 @@ Location::set_start (nframes_t s) } int -Location::set_end (nframes_t e) +Location::set_end (nframes64_t e) { if (_locked) { return -1; @@ -166,7 +166,7 @@ Location::set_end (nframes_t e) } int -Location::set (nframes_t start, nframes_t end) +Location::set (nframes64_t start, nframes64_t end) { if (_locked) { return -1; @@ -191,7 +191,7 @@ Location::set (nframes_t start, nframes_t end) } int -Location::move_to (nframes_t pos) +Location::move_to (nframes64_t pos) { if (_locked) { return -1; @@ -385,14 +385,14 @@ Location::set_state (const XMLNode& node) may make the value of _start illegal. */ - _start = atoi (prop->value().c_str()); - + sscanf (prop->value().c_str(), "%" PRIu32, &_start); + if ((prop = node.property ("end")) == 0) { error << _("XML node for Location has no end information") << endmsg; return -1; } - _end = atoi (prop->value().c_str()); + sscanf (prop->value().c_str(), "%" PRIu32, &_end); if ((prop = node.property ("flags")) == 0) { error << _("XML node for Location has no flags information") << endmsg; @@ -733,7 +733,7 @@ struct LocationStartLaterComparison }; Location * -Locations::first_location_before (nframes_t frame, bool include_special_ranges) +Locations::first_location_before (nframes64_t frame, bool include_special_ranges) { LocationList locs; @@ -760,7 +760,7 @@ Locations::first_location_before (nframes_t frame, bool include_special_ranges) } Location * -Locations::first_location_after (nframes_t frame, bool include_special_ranges) +Locations::first_location_after (nframes64_t frame, bool include_special_ranges) { LocationList locs; @@ -786,8 +786,8 @@ Locations::first_location_after (nframes_t frame, bool include_special_ranges) return 0; } -nframes_t -Locations::first_mark_before (nframes_t frame, bool include_special_ranges) +nframes64_t +Locations::first_mark_before (nframes64_t frame, bool include_special_ranges) { LocationList locs; @@ -826,8 +826,8 @@ Locations::first_mark_before (nframes_t frame, bool include_special_ranges) return 0; } -nframes_t -Locations::first_mark_after (nframes_t frame, bool include_special_ranges) +nframes64_t +Locations::first_mark_after (nframes64_t frame, bool include_special_ranges) { LocationList locs; |