summaryrefslogtreecommitdiff
path: root/src/drumkitloader.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-22 10:34:21 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-22 10:34:21 +0200
commitbef1d5542f926a3b942374707dd56041013d35ff (patch)
tree71161b4239db1de08d5a3ee60399a596490f3486 /src/drumkitloader.h
parentacf59a4f960b3e45db566675551b8158b47e1554 (diff)
Added framesize control mechanism to the engine, and made us of it in the cachemanager and drumkitloader.
Diffstat (limited to 'src/drumkitloader.h')
-rw-r--r--src/drumkitloader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drumkitloader.h b/src/drumkitloader.h
index 2c0ea8e..550d885 100644
--- a/src/drumkitloader.h
+++ b/src/drumkitloader.h
@@ -85,15 +85,20 @@ public:
*/
void skip();
+ void setFrameSize(size_t framesize);
+
private:
Semaphore run_semaphore;
Semaphore semaphore;
+ Semaphore framesize_semaphore;
Mutex mutex;
volatile bool running;
std::list<AudioFile*> load_queue;
size_t total_num_audiofiles;
size_t fraction;
size_t loaded;
+
+ size_t framesize;
};
#endif/*__DRUMGIZMO_DRUMKITLOADER_H__*/