diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-11 19:15:58 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-11 19:15:58 +0200 |
commit | abf3b22cde970af44b28e97c2fc1be12e7570740 (patch) | |
tree | 17a155a1fc2085d425b67d8aaae29bbf9751c9ad | |
parent | fd3edab5680fbbf998d70aadb269efd62b284ae5 (diff) |
ADded local cache.
-rw-r--r-- | src/cachemanager.h | 7 |
1 files 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<event_t> eventqueue; |