diff options
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r-- | src/drumkitloader.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index 8ec47a5..e4d34f2 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -37,13 +37,15 @@ DrumKitLoader::DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie, Resamplers& resamplers, - Random& rand) + Random& rand, + AudioCache& audio_cache) : settings(settings) , getter(settings) , kit(kit) , ie(ie) , resamplers(resamplers) , rand(rand) + , audio_cache(audio_cache) { } @@ -193,6 +195,8 @@ void DrumKitLoader::loadKit(DrumKit *kit) DEBUG(loader, "Queued %d (size: %d) AudioFiles for loading.\n", (int)settings.number_of_files.load(), (int)load_queue.size()); + audio_cache.updateChunkSize(kit->channels.size()); + semaphore.post(); // Start loader loop. } |