summaryrefslogtreecommitdiff
path: root/src/event.cc
diff options
context:
space:
mode:
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;
}