summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-31 16:11:20 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-31 16:11:20 +0100
commit469f2c84d8c7416056655be79edfe8f7bff4ab1f (patch)
treed76dd435e681da6842047af56da67c7b674cec66
parent7fcd2e7fdd9c134d83983eeda185bd3d7aed51f1 (diff)
Make it more clear how to enable diskstreaming
-rw-r--r--src/drumkitloader.cc9
1 files 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++;