mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
allow to query export profile type
This commit is contained in:
parent
f8a6213454
commit
9eaced4c9d
2 changed files with 5 additions and 3 deletions
|
|
@ -65,6 +65,8 @@ class LIBARDOUR_API ExportProfileManager
|
||||||
void load_profile ();
|
void load_profile ();
|
||||||
void prepare_for_export ();
|
void prepare_for_export ();
|
||||||
|
|
||||||
|
ExportType type () const { return _type; }
|
||||||
|
|
||||||
typedef std::list<ExportPresetPtr> PresetList;
|
typedef std::list<ExportPresetPtr> PresetList;
|
||||||
|
|
||||||
PresetList const & get_presets () { return preset_list; }
|
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::pair<PBD::UUID, std::string> FilePair;
|
||||||
typedef std::map<PBD::UUID, std::string> FileMap;
|
typedef std::map<PBD::UUID, std::string> FileMap;
|
||||||
|
|
||||||
ExportType type;
|
ExportType _type;
|
||||||
std::string xml_node_name;
|
std::string xml_node_name;
|
||||||
HandlerPtr handler;
|
HandlerPtr handler;
|
||||||
Session & session;
|
Session & session;
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ namespace ARDOUR
|
||||||
{
|
{
|
||||||
|
|
||||||
ExportProfileManager::ExportProfileManager (Session & s, ExportType type)
|
ExportProfileManager::ExportProfileManager (Session & s, ExportType type)
|
||||||
: type(type)
|
: _type(type)
|
||||||
, handler (s.get_export_handler())
|
, handler (s.get_export_handler())
|
||||||
, session (s)
|
, session (s)
|
||||||
|
|
||||||
|
|
@ -162,7 +162,7 @@ ExportProfileManager::prepare_for_export ()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...and each channel config
|
// ...and each channel config
|
||||||
filename->include_channel_config = (type == StemExport) ||
|
filename->include_channel_config = (_type == StemExport) ||
|
||||||
(channel_configs.size() > 1);
|
(channel_configs.size() > 1);
|
||||||
for(ChannelConfigStateList::iterator cc_it = channel_configs.begin(); cc_it != channel_configs.end(); ++cc_it) {
|
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);
|
handler->add_export_config (*ts_it, (*cc_it)->config, (*format_it)->format, filename, b);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue