summaryrefslogtreecommitdiff
path: root/libs/ardour/export_handler.cc
diff options
context:
space:
mode:
authorColin Fletcher <colin.m.fletcher@googlemail.com>2015-02-10 11:07:44 +0000
committerRobin Gareus <robin@gareus.org>2015-03-28 18:34:02 +0100
commit8806e6ec9d09ced8eeb1b659b3d956d595620ab6 (patch)
tree55efb8e9e31ef8b526017edbc4d39bfc3844a9b9 /libs/ardour/export_handler.cc
parentb55b7ce1add5f639d1860f1a250c61ecf53f590a (diff)
Export EAN barcode number to 'CATALOG' field in .cue & .toc files
Diffstat (limited to 'libs/ardour/export_handler.cc')
-rw-r--r--libs/ardour/export_handler.cc8
1 files changed, 8 insertions, 0 deletions
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;