summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 16:45:39 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:44:25 +0200
commitb663b60b70a3a7a6678e4cc2cc29d5394e2e6539 (patch)
treecdfee424061766e74bf4ecec3ad8befe8140c7a9 /src/drumgizmo.cc
parent4f4ac639f9bea3fcacf439213aabd0b70c678ecb (diff)
API Refactoring for events
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index d9afbfa..853e93d 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -315,7 +315,7 @@ bool DrumGizmo::run(size_t pos, sample_t *samples, size_t nsamples)
while(evs != activeevents[ch.num].end())
{
Event *ev = *evs;
- if(ev->type() == Event::sample)
+ if(ev->getType() == Event::sample)
{
EventSample *sev = (EventSample*)ev;
if(sev->group == i->getGroup() && sev->instrument != i)
@@ -498,7 +498,7 @@ void DrumGizmo::getSamples(int ch, int pos, sample_t* s, size_t sz)
Event* event = *i;
- Event::type_t type = event->type();
+ Event::type_t type = event->getType();
switch(type) {
case Event::sample:
{