projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typos in prev commit
[ardour.git]
/
libs
/
ardour
/
ardour
/
click.h
diff --git
a/libs/ardour/ardour/click.h
b/libs/ardour/ardour/click.h
index 783588c8ab636de8983f0f26a7028912b4e43627..7fc6d21f7396d19926efc9a096cafbd87484cee1 100644
(file)
--- a/
libs/ardour/ardour/click.h
+++ b/
libs/ardour/ardour/click.h
@@
-23,39
+23,39
@@
#include <list>
#include "pbd/pool.h"
#include <list>
#include "pbd/pool.h"
+#include "ardour/libardour_visibility.h"
#include "ardour/types.h"
#include "ardour/io.h"
namespace ARDOUR {
#include "ardour/types.h"
#include "ardour/io.h"
namespace ARDOUR {
-struct Click {
+class LIBARDOUR_API Click {
+public:
framepos_t start;
framecnt_t duration;
framecnt_t offset;
const Sample *data;
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) {}
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;
};
private:
static Pool pool;
};
-typedef std::list<Click*> Clicks;
-
-class ClickIO : public IO
+class LIBARDOUR_API ClickIO : public IO
{
public:
ClickIO (Session& s, const std::string& name) : IO (s, name, IO::Output) {}
~ClickIO() {}
{
public:
ClickIO (Session& s, const std::string& name) : IO (s, name, IO::Output) {}
~ClickIO() {}
-
+
protected:
uint32_t pans_required () const { return 1; }
};
protected:
uint32_t pans_required () const { return 1; }
};