summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/export_channel.h
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2008-12-29 19:50:19 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2008-12-29 19:50:19 +0000
commit3d239bb9d59f555d08fd9362e9ce50de1255c633 (patch)
tree8346d16f52cdbf54d92268d6f64f60a3cdc1d925 /libs/ardour/ardour/export_channel.h
parent22d73333c62957ec9d3ecfb47849c4e2048e2e3f (diff)
Fix some compiling warnings and errors in OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@4358 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/export_channel.h')
-rw-r--r--libs/ardour/ardour/export_channel.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/libs/ardour/ardour/export_channel.h b/libs/ardour/ardour/export_channel.h
index d9e39c8850..213bd2d9fa 100644
--- a/libs/ardour/ardour/export_channel.h
+++ b/libs/ardour/ardour/export_channel.h
@@ -38,6 +38,9 @@ class Session;
class ExportChannel
{
public:
+
+ virtual ~ExportChannel () {}
+
virtual void read (Sample * data, nframes_t frames) const = 0;
virtual bool empty () const = 0;
@@ -69,13 +72,13 @@ class PortExportChannel : public ExportChannel
PortExportChannel () {}
- virtual void read (Sample * data, nframes_t frames) const;
- virtual bool empty () const { return ports.empty(); }
+ void read (Sample * data, nframes_t frames) const;
+ bool empty () const { return ports.empty(); }
- virtual void get_state (XMLNode * node) const;
- virtual void set_state (XMLNode * node, Session & session);
+ void get_state (XMLNode * node) const;
+ void set_state (XMLNode * node, Session & session);
- virtual bool operator< (ExportChannel const & other) const;
+ bool operator< (ExportChannel const & other) const;
void add_port (AudioPort * port) { ports.insert (port); }
PortSet const & get_ports () { return ports; }
@@ -126,12 +129,12 @@ class RegionExportChannel : public ExportChannel
friend class RegionExportChannelFactory;
public:
- virtual void read (Sample * data, nframes_t frames_to_read) const { factory.read (channel, data, frames_to_read); }
- virtual void get_state (XMLNode * node) const {};
- virtual void set_state (XMLNode * node, Session & session) {};
- virtual bool empty () const { return false; }
+ void read (Sample * data, nframes_t frames_to_read) const { factory.read (channel, data, frames_to_read); }
+ void get_state (XMLNode * node) const {};
+ void set_state (XMLNode * node, Session & session) {};
+ bool empty () const { return false; }
// Region export should never have duplicate channels, so there need not be any semantics here
- virtual bool operator< (ExportChannel const & other) const { return this < &other; }
+ bool operator< (ExportChannel const & other) const { return this < &other; }
private: