diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-14 20:27:56 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-14 20:27:56 +0200 |
commit | 36a62ae3403f7cfb02bd8dde43b6b2fa96fe867b (patch) | |
tree | c4ea5f2f97e94688bd0ac96dbb198a8f1eb67491 /src/drumkitloader.cc | |
parent | 7bbc7520ecb2ff4fc020189c1fdfebd7d3bb8e42 (diff) |
Make all components use the same Random instance and add seed method on DrumGizmo class. Added dgreftest application for doing reference midifile rendering tests.
Diffstat (limited to 'src/drumkitloader.cc')
-rw-r--r-- | src/drumkitloader.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index a9b87f0..814a98d 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -36,12 +36,14 @@ DrumKitLoader::DrumKitLoader(Settings& settings, DrumKit& kit, AudioInputEngine& ie, - Resamplers& resamplers) + Resamplers& resamplers, + Random& rand) : settings(settings) , getter(settings) , kit(kit) , ie(ie) , resamplers(resamplers) + , rand(rand) { run(); run_semaphore.wait(); // Wait for the thread to actually start. @@ -80,7 +82,7 @@ bool DrumKitLoader::loadkit(const std::string& file) settings.drumkit_load_status.store(LoadStatus::Loading); - DrumKitParser parser(settings, kit); + DrumKitParser parser(settings, kit, rand); if(parser.parseFile(file)) { ERR(drumgizmo, "Drumkit parser failed: %s\n", file.c_str()); |