summaryrefslogtreecommitdiff
path: root/src/drumkitloader.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-14 20:39:32 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-15 08:57:35 +0200
commit8b3506186e5c9c810bcbe4a4206874d9fd4dfe9b (patch)
treef27d5d1bcdd1f560de35f418bdf9333d32fff387 /src/drumkitloader.h
parent87e0b9b288c0157544cfcefb63015a319507698a (diff)
Add chunk size control to the audio cache engine.
Diffstat (limited to 'src/drumkitloader.h')
-rw-r--r--src/drumkitloader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drumkitloader.h b/src/drumkitloader.h
index c36194c..22fa310 100644
--- a/src/drumkitloader.h
+++ b/src/drumkitloader.h
@@ -39,6 +39,7 @@
#include "audioinputengine.h"
#include "chresampler.h"
#include "memchecker.h"
+#include "audiocache.h"
//! This class is responsible for loading the drumkits in its own thread.
//! All interaction calls are simply modifying queues and not doing any
@@ -50,7 +51,7 @@ class DrumKitLoader
{
public:
DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie,
- Resamplers& resamplers, Random& rand);
+ Resamplers& resamplers, Random& rand, AudioCache& audio_cache);
~DrumKitLoader();
@@ -92,5 +93,6 @@ protected:
Resamplers& resamplers;
MemChecker memchecker;
Random& rand;
+ AudioCache& audio_cache;
std::size_t preload_samples{std::numeric_limits<std::size_t>::max()};
};