View Issue Details

IDCategoryLast Update
0007780bugs2019-08-02 00:44
ReportermschwarzenbergAssigned Tox42 
Reproducibilityalways 
Status resolvedResolutionfixed 
PlatformSome Other LinuxOSSome Other LinuxOS Versionunknown
Product Version5.12 
Fixed in Version 
Summary0007780: .cue file export: INDEX positions are wrong when using pre-gaps (where track START is > 0:00:00)
DescriptionCurrently, the INDEX position written in .cue files are relative to the track begin. This is wrong and results in shifted CD indices (verified on a real hardware CD player).

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.
Steps To Reproduce1.) Create a CD .toc file with pre gap and CD track indices
2.) burn the CD using cdrdao
3.) play it with a index aware CD player.
Additional InformationThis bug can be fixed using the following patch, which has been verified using a hardware CD player:

diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc
index 1f10aaa2d3..859642b982 100644
--- a/libs/ardour/export_handler.cc
+++ b/libs/ardour/export_handler.cc
@@ -850,7 +850,7 @@ ExportHandler::write_index_info_toc (CDMarkerStatus & status)
 {
        gchar buf[18];
 
- frames_to_cd_frames_string (buf, status.index_position - status.track_position);
+ frames_to_cd_frames_string (buf, status.index_position - status.track_start_frame);
        status.out << "INDEX" << buf << endl;
 }
TagsNo tags attached.

Activities

x42

2019-08-02 00:44

administrator   ~0020709

Fixed in 6.0-pre0-2144-g71d4dd821c -- Thanks!

Issue History

Date Modified Username Field Change
2019-08-01 21:51 mschwarzenberg New Issue
2019-08-02 00:44 x42 Assigned To => x42
2019-08-02 00:44 x42 Status new => resolved
2019-08-02 00:44 x42 Resolution open => fixed
2019-08-02 00:44 x42 Note Added: 0020709