summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/export_channel.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
commit30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch)
tree620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/ardour/ardour/export_channel.h
parentcb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff)
globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
Diffstat (limited to 'libs/ardour/ardour/export_channel.h')
-rw-r--r--libs/ardour/ardour/export_channel.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/libs/ardour/ardour/export_channel.h b/libs/ardour/ardour/export_channel.h
index 894406874e..a94d65fbdc 100644
--- a/libs/ardour/ardour/export_channel.h
+++ b/libs/ardour/ardour/export_channel.h
@@ -46,9 +46,9 @@ class LIBARDOUR_API ExportChannel : public boost::less_than_comparable<ExportCha
virtual ~ExportChannel () {}
- virtual void set_max_buffer_size(framecnt_t) { }
+ virtual void set_max_buffer_size(samplecnt_t) { }
- virtual void read (Sample const *& data, framecnt_t frames) const = 0;
+ virtual void read (Sample const *& data, samplecnt_t samples) const = 0;
virtual bool empty () const = 0;
/// Adds state to node passed
@@ -68,9 +68,9 @@ class LIBARDOUR_API PortExportChannel : public ExportChannel
typedef std::set<boost::weak_ptr<AudioPort> > PortSet;
PortExportChannel ();
- void set_max_buffer_size(framecnt_t frames);
+ void set_max_buffer_size(samplecnt_t samples);
- void read (Sample const *& data, framecnt_t frames) const;
+ void read (Sample const *& data, samplecnt_t samples) const;
bool empty () const { return ports.empty(); }
void get_state (XMLNode * node) const;
@@ -84,7 +84,7 @@ class LIBARDOUR_API PortExportChannel : public ExportChannel
private:
PortSet ports;
boost::scoped_array<Sample> buffer;
- framecnt_t buffer_size;
+ samplecnt_t buffer_size;
};
@@ -103,23 +103,23 @@ class LIBARDOUR_API RegionExportChannelFactory
~RegionExportChannelFactory ();
ExportChannelPtr create (uint32_t channel);
- void read (uint32_t channel, Sample const *& data, framecnt_t frames_to_read);
+ void read (uint32_t channel, Sample const *& data, samplecnt_t samples_to_read);
private:
- int new_cycle_started (framecnt_t) { buffers_up_to_date = false; return 0; }
- void update_buffers (framecnt_t frames);
+ int new_cycle_started (samplecnt_t) { buffers_up_to_date = false; return 0; }
+ void update_buffers (samplecnt_t samples);
AudioRegion const & region;
AudioTrack & track;
Type type;
- framecnt_t frames_per_cycle;
+ samplecnt_t samples_per_cycle;
size_t n_channels;
BufferSet buffers;
bool buffers_up_to_date;
- framecnt_t region_start;
- framecnt_t position;
+ samplecnt_t region_start;
+ samplecnt_t position;
boost::scoped_array<Sample> mixdown_buffer;
boost::scoped_array<Sample> gain_buffer;
@@ -133,7 +133,7 @@ class LIBARDOUR_API RegionExportChannel : public ExportChannel
friend class RegionExportChannelFactory;
public:
- void read (Sample const *& data, framecnt_t frames_to_read) const { factory.read (channel, data, frames_to_read); }
+ void read (Sample const *& data, samplecnt_t samples_to_read) const { factory.read (channel, data, samples_to_read); }
void get_state (XMLNode * /*node*/) const {};
void set_state (XMLNode * /*node*/, Session & /*session*/) {};
bool empty () const { return false; }
@@ -164,9 +164,9 @@ class LIBARDOUR_API RouteExportChannel : public ExportChannel
static void create_from_route(std::list<ExportChannelPtr> & result, boost::shared_ptr<Route> route);
public: // ExportChannel interface
- void set_max_buffer_size(framecnt_t frames);
+ void set_max_buffer_size(samplecnt_t samples);
- void read (Sample const *& data, framecnt_t frames) const;
+ void read (Sample const *& data, samplecnt_t samples) const;
bool empty () const { return false; }
void get_state (XMLNode * node) const;