From 4c8b9daa0f3ddd793d6d586ca0c0758acbbf06bc Mon Sep 17 00:00:00 2001 From: Mister Benjamin Date: Thu, 21 May 2020 16:34:39 +0200 Subject: [PATCH] Allow CD marker at session start #8029 This removes the restriction to not place a CD marker at session start. This helps in getting rid of some inconsistencies. Also, the previous policy didn't help in enforcing the Red Book standard. Two seconds of pregap are implicitly created by DDP mastering tools and CD burning software. --- libs/ardour/location.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index f0ac96f7c4..b2f6bf67cd 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -213,12 +213,6 @@ Location::set_start (samplepos_t s, bool force, bool allow_beat_recompute, const } } - if (is_cd_marker()) { - if (s <= _session.current_start_sample()) { - return -1; - } - } - if (is_mark()) { if (_start != s) { _start = s; @@ -470,14 +464,6 @@ Location::set_hidden (bool yn, void*) void Location::set_cd (bool yn, void*) { - // XXX this really needs to be session start - // but its not available here - leave to GUI - - if (yn && _start == 0) { - error << _("You cannot put a CD marker at this position") << endmsg; - return; - } - if (set_flag_internal (yn, IsCDMarker)) { flags_changed (this); /* EMIT SIGNAL */ FlagsChanged ();