summaryrefslogtreecommitdiff
path: root/src/drumkitloader.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-22 13:09:42 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-22 13:17:42 +0200
commitcc0f25cd2b9fc5856f16b71a412ce8c17edc39a7 (patch)
tree8054bd08a5c19b5265d790106906532884c9bb13 /src/drumkitloader.cc
parentd4e2178776342e046886f9426d752fa6a7808350 (diff)
Include new information into the status frame.
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r--src/drumkitloader.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc
index e4d34f2..eed5a33 100644
--- a/src/drumkitloader.cc
+++ b/src/drumkitloader.cc
@@ -125,12 +125,18 @@ bool DrumKitLoader::loadkit(const std::string& file)
"Trying to load it anyway...\n");
}
+ // Put some information about the kit into the settings
+ settings.drumkit_name = kit.getName();
+ settings.drumkit_description = kit.getDescription();
+ settings.drumkit_version = kit.getVersion();
+ settings.drumkit_samplerate = kit.getSamplerate();
+
loadKit(&kit);
#ifdef WITH_RESAMPLER
resamplers.setup(kit.getSamplerate(), settings.samplerate.load());
#endif/*WITH_RESAMPLER*/
-
+ settings.resampling_active.store(resamplers.isActive());
DEBUG(loadkit, "loadkit: Success\n");