summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/export_channel_configuration.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /libs/ardour/ardour/export_channel_configuration.h
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/export_channel_configuration.h')
-rw-r--r--libs/ardour/ardour/export_channel_configuration.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/libs/ardour/ardour/export_channel_configuration.h b/libs/ardour/ardour/export_channel_configuration.h
index 70b2bb00d9..8ef9bba6dc 100644
--- a/libs/ardour/ardour/export_channel_configuration.h
+++ b/libs/ardour/ardour/export_channel_configuration.h
@@ -51,20 +51,20 @@ class ExportChannelConfiguration
typedef boost::shared_ptr<ExportTimespan> TimespanPtr;
typedef boost::shared_ptr<ExportFormatSpecification const> FormatPtr;
typedef boost::shared_ptr<ExportFilename> FilenamePtr;
-
+
typedef std::pair<FormatPtr, FilenamePtr> FileConfig;
typedef std::list<FileConfig> FileConfigList;
-
+
/// Struct for threading, acts like a pointer to a ExportChannelConfiguration
struct WriterThread {
WriterThread (ExportChannelConfiguration & channel_config) :
- channel_config (channel_config), running (false) {}
-
+ channel_config (channel_config), running (false) {}
+
ExportChannelConfiguration * operator-> () { return &channel_config; }
ExportChannelConfiguration & operator* () { return channel_config; }
-
+
ExportChannelConfiguration & channel_config;
-
+
pthread_t thread;
bool running;
};
@@ -72,46 +72,46 @@ class ExportChannelConfiguration
private:
friend class ExportElementFactory;
ExportChannelConfiguration (Session & session);
-
+
public:
XMLNode & get_state ();
int set_state (const XMLNode &);
-
+
typedef std::list<ExportChannelPtr> ChannelList;
-
+
ChannelList const & get_channels () const { return channels; }
bool all_channels_have_ports () const;
-
+
Glib::ustring name () const { return _name; }
void set_name (Glib::ustring name) { _name = name; }
void set_split (bool value) { split = value; }
-
+
bool get_split () const { return split; }
uint32_t get_n_chans () const { return channels.size(); }
-
+
void register_channel (ExportChannelPtr channel) { channels.push_back (channel); }
void register_file_config (FormatPtr format, FilenamePtr filename) { file_configs.push_back (FileConfig (format, filename)); }
-
+
void clear_channels () { channels.clear (); }
-
+
/// Writes all files for this channel config @return true if a new thread was spawned
bool write_files (boost::shared_ptr<ExportProcessor> new_processor);
sigc::signal<void> FilesWritten;
-
+
// Tells the handler the necessary information for it to handle tempfiles
void register_with_timespan (TimespanPtr timespan);
-
+
void unregister_all ();
-
+
private:
typedef boost::shared_ptr<ExportStatus> ExportStatusPtr;
- Session & session;
+ Session & session;
// processor has to be prepared before doing this.
void write_file ();
-
+
/// The actual write files, needed for threading
static void * _write_files (void *arg);
WriterThread writer_thread;
@@ -123,7 +123,7 @@ class ExportChannelConfiguration
TimespanPtr timespan;
ChannelList channels;
FileConfigList file_configs;
-
+
bool split; // Split to mono files
Glib::ustring _name;
};