summaryrefslogtreecommitdiff
path: root/src/drumkitloader.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-03-22 20:19:45 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-03-23 20:17:53 +0100
commit6c5b062ba00388951b67dc1ea555dc6ad8af4ede (patch)
tree2ebc3884a6423d39c6729bd7e1e018e1f504d49a /src/drumkitloader.h
parenta6c134a82143acd32f80b2f9679f8fcf194a5402 (diff)
Use cache limit for preloading. Add re-load support through reload counter. Refactor AudioFile.
Diffstat (limited to 'src/drumkitloader.h')
-rw-r--r--src/drumkitloader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drumkitloader.h b/src/drumkitloader.h
index 9608e14..c36194c 100644
--- a/src/drumkitloader.h
+++ b/src/drumkitloader.h
@@ -73,7 +73,7 @@ public:
//! Set the framesize which will be used to preloading samples in next
//! loadKit call.
- void setFrameSize(size_t framesize);
+ void setFrameSize(std::size_t framesize);
protected:
void thread_main();
@@ -92,4 +92,5 @@ protected:
Resamplers& resamplers;
MemChecker memchecker;
Random& rand;
+ std::size_t preload_samples{std::numeric_limits<std::size_t>::max()};
};