diff options
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/export_channel_configuration.h | 8 | ||||
-rw-r--r-- | libs/ardour/ardour/export_filename.h | 3 | ||||
-rw-r--r-- | libs/ardour/ardour/export_graph_builder.h | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/libs/ardour/ardour/export_channel_configuration.h b/libs/ardour/ardour/export_channel_configuration.h index 4b027cc020..e088aba2f0 100644 --- a/libs/ardour/ardour/export_channel_configuration.h +++ b/libs/ardour/ardour/export_channel_configuration.h @@ -22,8 +22,8 @@ #define __ardour_export_channel_configuration_h__ #include <list> - #include <glibmm/ustring.h> +#include <boost/enable_shared_from_this.hpp> #include "ardour/export_channel.h" #include "ardour/export_status.h" @@ -43,7 +43,7 @@ class ExportProcessor; class ExportTimespan; class Session; -class ExportChannelConfiguration +class ExportChannelConfiguration : public boost::enable_shared_from_this<ExportChannelConfiguration> { private: @@ -71,6 +71,10 @@ class ExportChannelConfiguration void register_channel (ExportChannelPtr channel) { channels.push_back (channel); } void clear_channels () { channels.clear (); } + + /** Returns a list of channel configurations that match the files created. + * I.e. many configurations if splitting is enabled, one if not. */ + void configurations_for_files (std::list<boost::shared_ptr<ExportChannelConfiguration> > & configs); private: diff --git a/libs/ardour/ardour/export_filename.h b/libs/ardour/ardour/export_filename.h index 2847291a13..c5f0e3b5ca 100644 --- a/libs/ardour/ardour/export_filename.h +++ b/libs/ardour/ardour/export_filename.h @@ -116,7 +116,8 @@ class ExportFilename { TimeFormat time_format; Glib::ustring get_formatted_time (Glib::ustring const & format) const; - struct tm * time_struct; // Due to static allocation no destructor or copy-ctor is needed because of this + // Due to the static allocation used in strftime(), no destructor or copy-ctor is needed for this + struct tm * time_struct; TimespanPtr timespan; ChannelConfigPtr channel_config; diff --git a/libs/ardour/ardour/export_graph_builder.h b/libs/ardour/ardour/export_graph_builder.h index 7bb5cf9aa1..e67c2fe90c 100644 --- a/libs/ardour/ardour/export_graph_builder.h +++ b/libs/ardour/ardour/export_graph_builder.h @@ -69,6 +69,8 @@ class ExportGraphBuilder private: + void add_split_config (FileSpec const & config); + class Encoder : public sigc::trackable { public: template <typename T> boost::shared_ptr<AudioGrapher::Sink<T> > init (FileSpec const & new_config); |