From 71d4dd821c0db8b47e283ea2fc2264b24e3d108b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 2 Aug 2019 02:43:43 +0200 Subject: [PATCH] Fix CD cue file Index positions -- #7780 According to the cdrdao man page, they should be defined as follows: INDEX MM:SS:FF Increments the index number at given position within the track. The first statement will increment from 1 to 2. The position is relative to the real track start, not counting an existing pre-gap. --- libs/ardour/export_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 424662d5e2..54d1e41fa7 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -838,7 +838,7 @@ ExportHandler::write_index_info_toc (CDMarkerStatus & status) { gchar buf[18]; - samples_to_cd_frame_string (buf, status.index_position - status.track_position); + samples_to_cd_frame_string (buf, status.index_position - status.track_start_sample); status.out << "INDEX" << buf << endl; }