summaryrefslogtreecommitdiff
path: root/libs/ardour/export_handler.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-08-02 02:43:43 +0200
committerRobin Gareus <robin@gareus.org>2019-08-02 02:43:43 +0200
commit71d4dd821c0db8b47e283ea2fc2264b24e3d108b (patch)
tree6ed6d5ea8d90573e73f7695c386957f559297e69 /libs/ardour/export_handler.cc
parent4e87751ab89aed3c5ae1530bdf174ef30883456f (diff)
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.
Diffstat (limited to 'libs/ardour/export_handler.cc')
-rw-r--r--libs/ardour/export_handler.cc2
1 files changed, 1 insertions, 1 deletions
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;
}