Some instruments have more than 1 global header per file..

This commit is contained in:
paulfd 2019-09-10 23:04:57 +02:00
parent a4df74a9d8
commit 0615fcab9c

View file

@ -41,7 +41,8 @@ void sfz::Synth::callback(std::string_view header, const std::vector<Opcode>& me
switch (hash(header)) {
case hash("global"):
// We shouldn't have multiple global headers in file
ASSERT(!hasGlobal);
// But apparently some instruments do not really care :)
// ASSERT(!hasGlobal);
globalOpcodes = members;
handleGlobalOpcodes(members);
hasGlobal = true;