diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-31 16:11:20 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-31 16:11:20 +0100 |
commit | 469f2c84d8c7416056655be79edfe8f7bff4ab1f (patch) | |
tree | d76dd435e681da6842047af56da67c7b674cec66 | |
parent | 7fcd2e7fdd9c134d83983eeda185bd3d7aed51f1 (diff) |
Make it more clear how to enable diskstreaming
-rw-r--r-- | src/drumkitloader.cc | 9 |
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++; |