From cddccda9be195cb411d85c887a8f20b30d310d34 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 22 Jun 2018 07:34:11 +0200 Subject: Make filechannel attribute optional in instrument xml files. --- src/domloader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/domloader.cc') 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(path + "/" + audiofiledom.file, - audiofiledom.filechannel - 1, + audiofiledom.filechannel - 1, // xml is 1-based instrument_channel); sample->addAudioFile(instrument_channel, -- cgit v1.2.3