From b6642d14ca64153b5731d1a3a79e4d00060541ca Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 19 Aug 2010 14:58:54 +0000 Subject: Write BWF info on export. Fixes #3398. git-svn-id: svn://localhost/ardour2/branches/3.0@7652 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/export_profile_manager.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libs/ardour/export_profile_manager.cc') diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc index 521f72747f..40160d1ada 100644 --- a/libs/ardour/export_profile_manager.cc +++ b/libs/ardour/export_profile_manager.cc @@ -38,6 +38,7 @@ #include "ardour/filename_extensions.h" #include "ardour/route.h" #include "ardour/session.h" +#include "ardour/broadcast_info.h" #include "i18n.h" @@ -122,7 +123,14 @@ ExportProfileManager::prepare_for_export () ++format_it, ++filename_it) { // filename->include_timespan = (ts_list->size() > 1); Disabled for now... - handler->add_export_config (*ts_it, channel_config, (*format_it)->format, (*filename_it)->filename); + + boost::shared_ptr b; + if ((*format_it)->format->has_broadcast_info()) { + b.reset (new BroadcastInfo); + b->set_from_session (session, (*ts_it)->get_start()); + } + + handler->add_export_config (*ts_it, channel_config, (*format_it)->format, (*filename_it)->filename, b); } } } -- cgit v1.2.3