From 9f9bc376e5cc48c0e4d0d079cd374000bf83c259 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 28 Jan 2016 13:35:45 +0100 Subject: Preload the entire file. Don't mess with the CHUNKSIZE... --- src/audiocache.h | 3 +-- src/drumkitloader.cc | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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++; -- cgit v1.2.3