projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add personal monitor sends
[ardour.git]
/
libs
/
ardour
/
ardour
/
click.h
diff --git
a/libs/ardour/ardour/click.h
b/libs/ardour/ardour/click.h
index 60499b98dac73606d3d4f8bab5056eb93126cbba..498a18219d9f018492de6e9e28d90b17494a92ae 100644
(file)
--- a/
libs/ardour/ardour/click.h
+++ b/
libs/ardour/ardour/click.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 200
4 Paul Davis
+ Copyright (C) 200
9 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-20,23
+20,43
@@
#ifndef __ardour_click_h__
#define __ardour_click_h__
#ifndef __ardour_click_h__
#define __ardour_click_h__
-#include <ardour/io.h>
+#include <list>
+
+#include "pbd/pool.h"
+#include "ardour/libardour_visibility.h"
+#include "ardour/types.h"
+#include "ardour/io.h"
namespace ARDOUR {
namespace ARDOUR {
-class ClickIO : public IO
-{
- public:
- ClickIO (Session& s, const string& name,
+class LIBARDOUR_API Click {
+public:
+ samplepos_t start;
+ samplecnt_t duration;
+ samplecnt_t offset;
+ const Sample *data;
+
+ Click (samplepos_t s, samplecnt_t d, const Sample *b) : start (s), duration (d), offset (0), data (b) {}
- int input_min = -1, int input_max = -1,
+ void *operator new (size_t) {
+ return pool.alloc ();
+ };
- int output_min = -1, int output_max = -1)
- : IO (s, name, input_min, input_max, output_min, output_max) {}
+ void operator delete(void *ptr, size_t /*size*/) {
+ pool.release (ptr);
+ }
+private:
+ static Pool pool;
+};
+
+class LIBARDOUR_API ClickIO : public IO
+{
+public:
+ ClickIO (Session& s, const std::string& name) : IO (s, name, IO::Output) {}
~ClickIO() {}
~ClickIO() {}
-
protected:
+protected:
uint32_t pans_required () const { return 1; }
};
uint32_t pans_required () const { return 1; }
};