From 8b3506186e5c9c810bcbe4a4206874d9fd4dfe9b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 14 Apr 2017 20:39:32 +0200 Subject: Add chunk size control to the audio cache engine. --- src/drumkitloader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/drumkitloader.h') 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::max()}; }; -- cgit v1.2.3