diff options
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r-- | src/drumgizmo.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index f8f30b8..44cd73c 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -84,6 +84,13 @@ bool DrumGizmo::loadkit(std::string file) return false; } + // Check if there is enough free RAM to load the drumkit. + if(!memchecker.enoughFreeMemory(kit)) + { + ERR(drumgizmo, "Not enough free RAM to load the drumkit."); + return false; + } + loader.loadKit(&kit); #ifdef WITH_RESAMPLER |