summaryrefslogtreecommitdiff
path: root/src/drumkitloader.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 22:38:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-23 22:38:44 +0100
commit569636bbd766710f5ac60a66c402acc70cdf77a8 (patch)
tree95712842bb1550c879796ce8444eaecf0e3741e9 /src/drumkitloader.cc
parent571e5a5feab478f6481db96343dfaf566bd2ab6d (diff)
Settings.
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r--src/drumkitloader.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc
index 82b177b..33ddd05 100644
--- a/src/drumkitloader.cc
+++ b/src/drumkitloader.cc
@@ -31,9 +31,10 @@
#include "drumkitparser.h"
#include "drumgizmo.h"
-DrumKitLoader::DrumKitLoader()
+DrumKitLoader::DrumKitLoader(Settings& settings)
: semaphore("drumkitloader")
, framesize(0)
+ , settings(settings)
{
run();
run_semaphore.wait(); // Wait for the thread to actually start.
@@ -187,11 +188,14 @@ void DrumKitLoader::thread_main()
if(loaded % fraction == 0 || loaded == total_num_audiofiles)
{
- LoadStatusMessage *ls = new LoadStatusMessage();
- ls->number_of_files = total_num_audiofiles;
- ls->numer_of_files_loaded = loaded;
- ls->current_file = filename;
- msghandler.sendMessage(MSGRCV_UI, ls);
+ //LoadStatusMessage *ls = new LoadStatusMessage();
+ //ls->number_of_files = total_num_audiofiles;
+ //ls->numer_of_files_loaded = loaded;
+ //ls->current_file = filename;
+ //msghandler.sendMessage(MSGRCV_UI, ls);
+ settings.number_of_files.store(total_num_audiofiles);
+ settings.number_of_files_loaded.store(loaded);
+ //settings.current_file.store(filename);
}
}