diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-04-12 10:57:54 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-20 13:23:13 +0100 |
commit | fbe989dad5043cc47a030623593a3fb1499e8d8c (patch) | |
tree | a85c86211236a4c7857f28e90a71758a37c222bc /src/cachemanager.h | |
parent | c7dd42879ab82c9d696b2e59f9de2281279dc905 (diff) |
Fix buffers and clean up a bit.
Diffstat (limited to 'src/cachemanager.h')
-rw-r--r-- | src/cachemanager.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/cachemanager.h b/src/cachemanager.h index 1b79568..557ba23 100644 --- a/src/cachemanager.h +++ b/src/cachemanager.h @@ -149,20 +149,18 @@ private: }; typedef struct { - bool active; - cacheid_t id; - size_t pos; cmd_t cmd; - sample_t *fillbuffer; - } event_t; + size_t pos; + sample_t *buffer; + AudioFile *file; + } cevent_t; - 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); + cevent_t createLoadNextEvent(AudioFile *file, size_t pos, sample_t* buffer); + void loadNext(cevent_t &e); + void pushEvent(cevent_t e); // Protected by mutex - std::list<event_t> eventqueue; + std::list<cevent_t> eventqueue; std::list<cacheid_t> availableids; std::vector<cache_t> id2cache; |