summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/export_channel_configuration.h
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2008-09-20 22:06:02 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2008-09-20 22:06:02 +0000
commiteec19ca7afde0da57b2a4d9abc6ef847e6924975 (patch)
treeab5d5f7ef73b01cd3b24405859c51b0678ea580c /libs/ardour/ardour/export_channel_configuration.h
parent79f59951e3dbcf655d5284830f125d6e1962d46c (diff)
* Added filename extension definitions for export presets and format profiles
* Export Preset widget doesn't allow overwriting existing presets * Some error detection for export preset loading * Moved some serialization code away from ExportProfileManager to respective classes git-svn-id: svn://localhost/ardour2/branches/3.0@3778 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/export_channel_configuration.h')
-rw-r--r--libs/ardour/ardour/export_channel_configuration.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/ardour/ardour/export_channel_configuration.h b/libs/ardour/ardour/export_channel_configuration.h
index 8f2fcdbd28..234cd5d127 100644
--- a/libs/ardour/ardour/export_channel_configuration.h
+++ b/libs/ardour/ardour/export_channel_configuration.h
@@ -30,6 +30,8 @@
#include <ardour/export_status.h>
#include <ardour/ardour.h>
+#include <pbd/xml++.h>
+
using Glib::ustring;
namespace ARDOUR
@@ -42,13 +44,11 @@ class ExportFormatSpecification;
class ExportFilename;
class ExportProcessor;
class ExportTimespan;
+class Session;
class ExportChannel : public std::set<AudioPort *>
{
public:
- ExportChannel ();
- ~ExportChannel ();
-
void add_port (AudioPort * port) { if (port) { insert (port); } }
void read_ports (float * data, nframes_t frames) const;
};
@@ -80,10 +80,11 @@ class ExportChannelConfiguration
private:
friend class ExportElementFactory;
- ExportChannelConfiguration (ExportStatus & status);
+ ExportChannelConfiguration (ExportStatus & status, Session & session);
public:
- ~ExportChannelConfiguration ();
+ XMLNode & get_state ();
+ int set_state (const XMLNode &);
typedef boost::shared_ptr<ExportChannel const> ChannelPtr;
typedef std::list<ChannelPtr> ChannelList;
@@ -114,6 +115,8 @@ class ExportChannelConfiguration
private:
+ Session & session;
+
// processor has to be prepared before doing this.
void write_file ();