summaryrefslogtreecommitdiff
path: root/src/event.h
diff options
context:
space:
mode:
authordeva <deva>2008-07-21 12:11:02 +0000
committerdeva <deva>2008-07-21 12:11:02 +0000
commit981cd50a83e67f5471ee1e1ad0c0575506f14da0 (patch)
treec206e93a6def02fec109190cc1c0b15c26f639c8 /src/event.h
parent9f07c02a19ee79906ad3f3ab8c9eed725def8b96 (diff)
Wee multivoices and multiple wavs... all triggered by the midi test framework.
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/event.h b/src/event.h
index 4f277a7..c32297e 100644
--- a/src/event.h
+++ b/src/event.h
@@ -27,19 +27,22 @@
#ifndef __DRUMGIZMO_EVENT_H__
#define __DRUMGIZMO_EVENT_H__
+#include <jack/jack.h>
+
#include <set>
#include "sample.h"
class Event {
public:
- Event(Sample *sample, size_t onset);
+ Event(jack_port_t *port, Sample *sample, size_t time, size_t duration = 0);
~Event();
bool operator<(const Event& event) const;
+ jack_port_t *port;
Sample *sample;
size_t duration;
- size_t onset;
+ size_t time;
};
typedef std::set< Event > Events;