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>2015-04-11 17:05:04 +0200
commit5fa47e69fb003238e1558a93b3e3cd50e3eb260e (patch)
treed41ab0842da3d55120500cd314f16cbdda12a2a4 /src/events.h
parent4d82b13f332ea8c3af3493e9ee2ac9cacdfa7f22 (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;