summaryrefslogtreecommitdiff
path: root/src/event.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-22 21:00:01 +0000
committerdeva <deva>2008-07-22 21:00:01 +0000
commitf6cabfe8fe888e00388a815541084b0fa332a462 (patch)
treed39301b9e194e2e58a24c92ec5526d05fa1b4a3a /src/event.cc
parent14309bc447960536c34a438dffb93f520dad40fa (diff)
DrumKit parser. Internal drumkit now used in events. This is the first milestone.
Diffstat (limited to 'src/event.cc')
-rw-r--r--src/event.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.cc b/src/event.cc
index c589807..5a78746 100644
--- a/src/event.cc
+++ b/src/event.cc
@@ -26,10 +26,11 @@
*/
#include "event.h"
-Event::Event(jack_port_t *port, Sample *sample, size_t time, size_t duration)
+Event::Event(jack_port_t *port, AudioFile *sample, size_t time, size_t duration)
{
this->port = port;
this->sample = sample;
+ sample->load();
this->time = time;
this->duration = duration;
}