summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/fixed_delay.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/fixed_delay.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/fixed_delay.h')
-rw-r--r--libs/ardour/ardour/fixed_delay.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/ardour/fixed_delay.h b/libs/ardour/ardour/fixed_delay.h
index 21eaa6567e..d73d7e4b63 100644
--- a/libs/ardour/ardour/fixed_delay.h
+++ b/libs/ardour/ardour/fixed_delay.h
@@ -53,7 +53,7 @@ public:
* @param max_delay the maximum number of samples to delay
* @param shrink when false already allocated buffers are kept if both channel-count and max-delay requirements are satisified
*/
- void configure (const ChanCount& count, framecnt_t max_delay, bool shrink = true);
+ void configure (const ChanCount& count, samplecnt_t max_delay, bool shrink = true);
/** set delay time and update active process buffers
*
@@ -63,7 +63,7 @@ public:
* @param count channels to be processed
* @param delay number of audio samples to delay
*/
- void set (const ChanCount& count, framecnt_t delay);
+ void set (const ChanCount& count, samplecnt_t delay);
/** process a channel
*
@@ -78,15 +78,15 @@ public:
* @param dst_offset offset in output buffer to start writing to
* @param src_offset offset in input buffer to start reading from
*/
- void delay (ARDOUR::DataType dt, uint32_t id, Buffer& out, const Buffer& in, pframes_t n_samples, framecnt_t dst_offset = 0, framecnt_t src_offset = 0);
+ void delay (ARDOUR::DataType dt, uint32_t id, Buffer& out, const Buffer& in, pframes_t n_samples, samplecnt_t dst_offset = 0, samplecnt_t src_offset = 0);
/** zero all buffers */
void flush();
private:
- framecnt_t _max_delay;
- framecnt_t _buf_size;
- framecnt_t _delay;
+ samplecnt_t _max_delay;
+ samplecnt_t _buf_size;
+ samplecnt_t _delay;
ChanCount _count;
struct DelayBuffer {
@@ -96,7 +96,7 @@ private:
: buf (Buffer::create (dt, capacity)), pos (0) {}
~DelayBuffer () { delete buf; }
Buffer * buf;
- framepos_t pos;
+ samplepos_t pos;
};
typedef std::vector<DelayBuffer*> BufferVec;