summaryrefslogtreecommitdiff
path: root/src/domloader.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-22 07:34:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-08-12 11:11:47 +0200
commitcddccda9be195cb411d85c887a8f20b30d310d34 (patch)
tree4c186ad966060f1a3d1a44d07d7848a225b63dc5 /src/domloader.cc
parent02226ccac3ce01b1afb5e320ccf980f5b735597a (diff)
Make filechannel attribute optional in instrument xml files.
Diffstat (limited to 'src/domloader.cc')
-rw-r--r--src/domloader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/domloader.cc b/src/domloader.cc
index e095acb..663ef75 100644
--- a/src/domloader.cc
+++ b/src/domloader.cc
@@ -104,7 +104,7 @@ bool DOMLoader::loadDom(const std::string& basepath,
auto audio_file =
std::make_unique<AudioFile>(path + "/" + audiofiledom.file,
- audiofiledom.filechannel - 1,
+ audiofiledom.filechannel - 1, // xml is 1-based
instrument_channel);
sample->addAudioFile(instrument_channel,