diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-02-08 18:42:44 +0100 | 
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-04-11 20:52:42 +0200 | 
| commit | 47adc0e3e96b7845f71fc1ce029833908fe8d8dc (patch) | |
| tree | 2f4f142364cff00d0cf108a213b560d092848c5a /src/dgxmlparser.cc | |
| parent | fcfaa7affa0ac8afeaf38346226beb30fca09733 (diff) | |
WIP: PoC on stereo map feature.stereo
Diffstat (limited to 'src/dgxmlparser.cc')
| -rw-r--r-- | src/dgxmlparser.cc | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dgxmlparser.cc b/src/dgxmlparser.cc index 0d3cdcd..983c2fd 100644 --- a/src/dgxmlparser.cc +++ b/src/dgxmlparser.cc @@ -256,7 +256,14 @@ bool parseDrumkitFile(const std::string& filename, DrumkitDOM& dom, LogFunction  	for(pugi::xml_node channel: channels.children("channel"))  	{  		dom.channels.emplace_back(); -		res &= attrcpy(dom.channels.back().name, channel, "name", logger, filename); +		auto& ch = dom.channels.back(); +		res &= attrcpy(ch.name, channel, "name", logger, filename); +		ch.stereo_panning = 0.0f; +		ch.stereo_volume = 1.0f; +		res &= attrcpy(ch.stereo_panning, channel, "stereo_panning", +		               logger, filename, true); +		res &= attrcpy(ch.stereo_volume, channel, "stereo_volume", +		               logger, filename, true);  	}  	pugi::xml_node instruments = doc.child("drumkit").child("instruments");  | 
