summaryrefslogtreecommitdiff
path: root/src/domloader.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-10-10 17:31:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-10-14 22:04:13 +0200
commit05270cd4abe1cc61fb680b801676436f10069413 (patch)
tree7bf77d0753c8a9822c2a7ff06016c8f73cddb186 /src/domloader.cc
parent1f7d744819968aec3c82035f730558cb73e0bd18 (diff)
Added 'normalized' attribute to sample tag.
Diffstat (limited to 'src/domloader.cc')
-rw-r--r--src/domloader.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/domloader.cc b/src/domloader.cc
index a718ade..97c1d6b 100644
--- a/src/domloader.cc
+++ b/src/domloader.cc
@@ -98,7 +98,8 @@ bool DOMLoader::loadDom(const std::string& basepath,
auto path = getPath(basepath + "/" + instrumentref.file);
for(const auto& sampledom : instrumentdom.samples)
{
- auto sample = new Sample(sampledom.name, sampledom.power);
+ auto sample = new Sample(sampledom.name, sampledom.power,
+ sampledom.normalized);
for(const auto& audiofiledom : sampledom.audiofiles)
{
InstrumentChannel *instrument_channel =