summaryrefslogtreecommitdiff
path: root/src/cachemanager.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-12 09:48:41 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2015-04-12 09:48:41 +0200
commit873bcbbe7b8c226d1efbfd34b6d1d454bcd10639 (patch)
treee0910d48ee0bc30cefc67937d6771ec589399916 /src/cachemanager.h
parent94b6e63ef94e55fd026eec97bb50a7b50b19f2f3 (diff)
Added buffers and removed local cache vectors.
Diffstat (limited to 'src/cachemanager.h')
-rw-r--r--src/cachemanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cachemanager.h b/src/cachemanager.h
index e565542..1b79568 100644
--- a/src/cachemanager.h
+++ b/src/cachemanager.h
@@ -140,6 +140,7 @@ private:
size_t pos;
sample_t *front;
sample_t *back;
+ size_t localpos;
} cache_t;
enum cmd_t {
@@ -152,10 +153,10 @@ private:
cacheid_t id;
size_t pos;
cmd_t cmd;
- sample_t **fillbuffer;
+ sample_t *fillbuffer;
} event_t;
- CacheManager::event_t createLoadNextEvent(cacheid_t id, size_t pos, sample_t** fillbuffer);
+ CacheManager::event_t createLoadNextEvent(cacheid_t id, size_t pos, sample_t* fillbuffer);
void loadNext(event_t &e);
void pushEvent(event_t e);
cache_t getNextCache(cacheid_t id);