From 469f2c84d8c7416056655be79edfe8f7bff4ab1f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 31 Jan 2016 16:11:20 +0100 Subject: Make it more clear how to enable diskstreaming --- src/drumkitloader.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index 64d6710..7b5b605 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -171,13 +171,16 @@ void DrumKitLoader::thread_main() AudioFile *audiofile = load_queue.front(); load_queue.pop_front(); filename = audiofile->filename; - size_t preload_size = framesize * CHUNK_MULTIPLIER + framesize; + int preload_size = framesize * CHUNK_MULTIPLIER + framesize; if(preload_size < 1024) { preload_size = 1024; } - (void)preload_size; - audiofile->load(ALL_SAMPLES); // Note: Change this to enable diskstreaming + + // Note: Remove this line to enable diskstreaming + preload_size = ALL_SAMPLES; + + audiofile->load(preload_size); } loaded++; -- cgit v1.2.3