summaryrefslogtreecommitdiff
path: root/src/events.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-04-11 17:05:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-20 13:23:11 +0100
commit0b0d73ead2235077debae5e045ed2b4cb191f5b2 (patch)
tree24891ec9974b3f69e7afb7b0baff4988dcf4e09d /src/events.h
parentd700b874c344a19bfef4abad2bf0dd293e93c6d6 (diff)
Integrate CacheManager into the engine.
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;