diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-16 01:35:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-16 02:14:27 +0200 |
commit | 9eaced4c9d2db5e080e5fa5228616917ccac211c (patch) | |
tree | 929d940e2780a8e99ffa8bea83c4f49f73cf7d4c | |
parent | f8a6213454c7a0a80114ffa01c8ce432b19f4617 (diff) |
allow to query export profile type
-rw-r--r-- | libs/ardour/ardour/export_profile_manager.h | 4 | ||||
-rw-r--r-- | libs/ardour/export_profile_manager.cc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/ardour/export_profile_manager.h b/libs/ardour/ardour/export_profile_manager.h index 2757795ff3..b0285f8ecc 100644 --- a/libs/ardour/ardour/export_profile_manager.h +++ b/libs/ardour/ardour/export_profile_manager.h @@ -65,6 +65,8 @@ class LIBARDOUR_API ExportProfileManager void load_profile (); void prepare_for_export (); + ExportType type () const { return _type; } + typedef std::list<ExportPresetPtr> PresetList; PresetList const & get_presets () { return preset_list; } @@ -79,7 +81,7 @@ class LIBARDOUR_API ExportProfileManager typedef std::pair<PBD::UUID, std::string> FilePair; typedef std::map<PBD::UUID, std::string> FileMap; - ExportType type; + ExportType _type; std::string xml_node_name; HandlerPtr handler; Session & session; diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc index f924ed17e5..be9cdd67d2 100644 --- a/libs/ardour/export_profile_manager.cc +++ b/libs/ardour/export_profile_manager.cc @@ -58,7 +58,7 @@ namespace ARDOUR { ExportProfileManager::ExportProfileManager (Session & s, ExportType type) - : type(type) + : _type(type) , handler (s.get_export_handler()) , session (s) @@ -162,7 +162,7 @@ ExportProfileManager::prepare_for_export () } // ...and each channel config - filename->include_channel_config = (type == StemExport) || + filename->include_channel_config = (_type == StemExport) || (channel_configs.size() > 1); for(ChannelConfigStateList::iterator cc_it = channel_configs.begin(); cc_it != channel_configs.end(); ++cc_it) { handler->add_export_config (*ts_it, (*cc_it)->config, (*format_it)->format, filename, b); |