summaryrefslogtreecommitdiff
path: root/src/events.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-20 20:13:52 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-20 20:13:52 +0200
commitc9200c25e02b2ab5c1fc4461a4621d109e798350 (patch)
tree6fca342d86d9e0839ae02bc66b3476f59a29eec7 /src/events.h
parent180d70312335d7274eff605e3ec4c1af5879daa4 (diff)
New 'instrument group' feature added.
Diffstat (limited to 'src/events.h')
-rw-r--r--src/events.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/events.h b/src/events.h
index a4adcee..fa0147b 100644
--- a/src/events.h
+++ b/src/events.h
@@ -52,23 +52,31 @@ public:
timepos_t offset;
};
+#define NO_RAMPDOWN -1
class EventSample : public Event {
public:
- EventSample(channel_t c, float g, AudioFile *af)
+ EventSample(channel_t c, float g, AudioFile *af, std::string grp,
+ void *instr)
{
channel = c;
gain = g;
t = 0;
file = af;
+ group = grp;
+ instrument = instr;
+ rampdown = NO_RAMPDOWN;
+ ramp_start = 0;
}
Event::type_t type() { return Event::sample; }
float gain;
-
unsigned int t;
-
AudioFile *file;
+ std::string group;
+ void *instrument;
+ int rampdown;
+ int ramp_start;
};
class EventQueue {