summaryrefslogtreecommitdiff
path: root/src/cachemanager.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-07-27 19:36:28 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-20 13:31:09 +0100
commit41a6b0ebb6f71032c5a8e69e6aa8c813657224d7 (patch)
tree92c1fcd62d3b910fced00b51dd79ce302e1c33d7 /src/cachemanager.cc
parent116b8dbef22bf3245bcf6c8195bf8bb8c0ea91d3 (diff)
Add free-wheel mode to LV2 and DrumGizmo class.
Diffstat (limited to 'src/cachemanager.cc')
-rw-r--r--src/cachemanager.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cachemanager.cc b/src/cachemanager.cc
index dc4b3e7..4cc1fa5 100644
--- a/src/cachemanager.cc
+++ b/src/cachemanager.cc
@@ -321,6 +321,14 @@ void CacheManager::setFrameSize(size_t framesize)
this->framesize = framesize;
}
+void CacheManager::setAsyncMode(bool async)
+{
+ // TODO: Clean out read queue.
+ // TODO: Block until reader thread is idle, otherwise we might screw up the
+ // buffers...?
+ threaded = async;
+}
+
void CacheManager::handleLoadNextEvent(cevent_t &e)
{
assert(files.find(e.afile->filename) != files.end());
@@ -355,7 +363,6 @@ void CacheManager::handleCloseEvent(cevent_t &e)
}
}
-
void CacheManager::handleEvent(cevent_t &e)
{
switch(e.cmd) {