From 73192bc1a7ea55fa1864dc3826845b15c00dd2ec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 3 Dec 2010 22:26:29 +0000 Subject: Remove all use of nframes_t. git-svn-id: svn://localhost/ardour2/branches/3.0@8166 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/click.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'libs/ardour/ardour/click.h') diff --git a/libs/ardour/ardour/click.h b/libs/ardour/ardour/click.h index 5ee1d50194..783588c8ab 100644 --- a/libs/ardour/ardour/click.h +++ b/libs/ardour/ardour/click.h @@ -29,34 +29,34 @@ namespace ARDOUR { struct Click { - nframes_t start; - nframes_t duration; - nframes_t offset; - const Sample *data; - - Click (nframes_t s, nframes_t d, const Sample *b) : start (s), duration (d), offset (0), data (b) {} + framepos_t start; + framecnt_t duration; + framecnt_t offset; + const Sample *data; + + Click (framepos_t s, framecnt_t d, const Sample *b) : start (s), duration (d), offset (0), data (b) {} - void *operator new (size_t) { - return pool.alloc (); + void *operator new (size_t) { + return pool.alloc (); }; - - void operator delete(void *ptr, size_t /*size*/) { - pool.release (ptr); - } - + + void operator delete(void *ptr, size_t /*size*/) { + pool.release (ptr); + } + private: - static Pool pool; + static Pool pool; }; typedef std::list Clicks; class ClickIO : public IO { - public: +public: ClickIO (Session& s, const std::string& name) : IO (s, name, IO::Output) {} ~ClickIO() {} - protected: +protected: uint32_t pans_required () const { return 1; } }; -- cgit v1.2.3