summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 13:35:45 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 13:35:45 +0100
commit9f9bc376e5cc48c0e4d0d079cd374000bf83c259 (patch)
treeb7593151bcf94f2d8df0e9e52ec3a625415b4f80
parente833fb72d3838b22c73d663eb45ba96122a080bc (diff)
Preload the entire file. Don't mess with the CHUNKSIZE...
-rw-r--r--src/audiocache.h3
-rw-r--r--src/drumkitloader.cc3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/audiocache.h b/src/audiocache.h
index 9d70ea8..06493e6 100644
--- a/src/audiocache.h
+++ b/src/audiocache.h
@@ -37,8 +37,7 @@
#include "audiocacheidmanager.h"
#include "audiocacheeventhandler.h"
-// 20 seconds * 96kHz * sizeof(float) * 16 channels / 16 samples buffer size
-#define CHUNK_MULTIPLIER (20 * 96000 * 4 * 16 / 16) //16
+#define CHUNK_MULTIPLIER 16
//TODO:
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc
index 3fa8420..0a44db0 100644
--- a/src/drumkitloader.cc
+++ b/src/drumkitloader.cc
@@ -158,7 +158,8 @@ void DrumKitLoader::thread_main()
{
preload_size = 1024;
}
- audiofile->load(preload_size);
+ (void)preload_size;
+ audiofile->load(ALL_SAMPLES); // Note: Change this to enable diskstreaming
}
loaded++;