summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorColin Fletcher <colin.m.fletcher@googlemail.com>2015-02-10 11:07:44 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2015-03-30 09:19:00 -0500
commitaca81bd89444e4105dbaff2664360b2f3c3f2770 (patch)
tree1f96e9f467c89d08fee079bc64790657b2e2fe13 /libs
parent6f2ca4194c732cebc71edd8a4295eefebf7294b3 (diff)
Export EAN barcode number to 'CATALOG' field in .cue & .toc files
Diffstat (limited to 'libs')
-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;