From 6bf5332db34b4e76f52ef321fcf70d67872782dd Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sat, 11 Apr 2015 19:15:58 +0200 Subject: ADded local cache. --- src/cachemanager.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cachemanager.h b/src/cachemanager.h index e0bf7f9..e565542 100644 --- a/src/cachemanager.h +++ b/src/cachemanager.h @@ -152,12 +152,13 @@ private: cacheid_t id; size_t pos; cmd_t cmd; + sample_t **fillbuffer; } event_t; - CacheManager::event_t createLoadNextEvent(cacheid_t id, size_t pos, cmd_t type); - void loadNext(cacheid_t id); + CacheManager::event_t createLoadNextEvent(cacheid_t id, size_t pos, sample_t** fillbuffer); + void loadNext(event_t &e); void pushEvent(event_t e); - const cache_t getNextCache(cacheid_t id); + cache_t getNextCache(cacheid_t id); // Protected by mutex std::list eventqueue; -- cgit v1.2.3