From 8806e6ec9d09ced8eeb1b659b3d956d595620ab6 Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Tue, 10 Feb 2015 11:07:44 +0000 Subject: Export EAN barcode number to 'CATALOG' field in .cue & .toc files --- libs/ardour/export_handler.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ardour/export_handler.cc') diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index c80f1a2af4..b45edc9b9e 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -519,8 +519,12 @@ void ExportHandler::write_cue_header (CDMarkerStatus & status) { string title = status.timespan->name().compare ("Session") ? status.timespan->name() : (string) session.name(); + string catalog = SessionMetadata::Metadata()->catalog(); status.out << "REM Cue file generated by " << PROGRAM_NAME << endl; + if (catalog != "") + status.out << "CATALOG " << catalog << endl; + status.out << "TITLE " << cue_escape_cdtext (title) << endl; /* The original cue sheet sepc metions five file types @@ -555,6 +559,10 @@ void ExportHandler::write_toc_header (CDMarkerStatus & status) { string title = status.timespan->name().compare ("Session") ? status.timespan->name() : (string) session.name(); + string catalog = SessionMetadata::Metadata()->catalog(); + + if (catalog != "") + status.out << "CATALOG " << catalog << endl; status.out << "CD_DA" << endl; status.out << "CD_TEXT {" << endl << " LANGUAGE_MAP {" << endl << " 0 : EN" << endl << " }" << endl; -- cgit v1.2.3