summaryrefslogtreecommitdiff
path: root/src/events.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 19:14:28 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 19:14:28 +0200
commitfd3edab5680fbbf998d70aadb269efd62b284ae5 (patch)
treeb0a5e74e28413b8ffaa5c50864529673ca796929 /src/events.h
parent9c52ab4a6688782d0db723bd411db745fed08087 (diff)
parentb7e50d0f21e5619e746dafac129bb66b746c8d64 (diff)
Merge branch 'diskstreaming' of http://git.drumgizmo.org/drumgizmo into diskstreaming
Diffstat (limited to 'src/events.h')
-rw-r--r--src/events.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/events.h b/src/events.h
index fa0147b..ea897f1 100644
--- a/src/events.h
+++ b/src/events.h
@@ -35,6 +35,7 @@
#include "audiofile.h"
#include "audio.h"
#include "mutex.h"
+#include "cachemanager.h"
typedef unsigned int timepos_t;
@@ -58,6 +59,7 @@ public:
EventSample(channel_t c, float g, AudioFile *af, std::string grp,
void *instr)
{
+ cache_id = CACHE_NOID;
channel = c;
gain = g;
t = 0;
@@ -70,6 +72,10 @@ public:
Event::type_t type() { return Event::sample; }
+ cacheid_t cache_id;
+ sample_t *buffer;
+ size_t buffer_size;
+
float gain;
unsigned int t;
AudioFile *file;