diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-10-11 10:14:51 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-10-11 10:14:51 +0000 |
commit | 98389f7da420ee205f6827b7df4db3ea0802f751 (patch) | |
tree | 28a28cf591b3d90a7eb60f422eee95e5ebfed6dc /libs/ardour/ardour/export_timespan.h | |
parent | 01b1790c98f9ee6739681f1dc8fe529c3ca7160a (diff) |
Region export dialog: Make export channel and -selector polymorphic, add the region related classes and a dialog specialization
git-svn-id: svn://localhost/ardour2/branches/3.0@3915 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/export_timespan.h')
-rw-r--r-- | libs/ardour/ardour/export_timespan.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/export_timespan.h b/libs/ardour/ardour/export_timespan.h index e19013e822..38f449a1a5 100644 --- a/libs/ardour/ardour/export_timespan.h +++ b/libs/ardour/ardour/export_timespan.h @@ -27,6 +27,7 @@ #include <glibmm/ustring.h> #include <ardour/export_status.h> +#include <ardour/export_channel.h> #include <ardour/ardour.h> using Glib::ustring; @@ -41,8 +42,8 @@ class ExportTimespan : public sigc::trackable { private: typedef boost::shared_ptr<ExportTempFile> TempFilePtr; - typedef std::pair<ExportChannel const, TempFilePtr> ChannelFilePair; - typedef std::map<ExportChannel const, TempFilePtr> TempFileMap; + typedef std::pair<ExportChannelPtr, TempFilePtr> ChannelFilePair; + typedef std::map<ExportChannelPtr, TempFilePtr> TempFileMap; typedef boost::shared_ptr<ExportStatus> ExportStatusPtr; private: @@ -59,13 +60,13 @@ class ExportTimespan : public sigc::trackable void set_range_id (ustring range_id) { _range_id = range_id; } /// Registers a channel to be read when export starts rolling - void register_channel (ExportChannel const & channel); + void register_channel (ExportChannelPtr channel); /// "Rewinds" the tempfiles to start reading the beginnings again void rewind (); /// Reads data from the tempfile belonging to channel into data - nframes_t get_data (float * data, nframes_t frames, ExportChannel const & channel); + nframes_t get_data (float * data, nframes_t frames, ExportChannelPtr channel); /// Reads data from each channel and writes to tempfile int process (nframes_t frames); |