| 1618 | } |
| 1619 | |
| 1620 | void VSTWrapper::HandleXMLEndTag(const std::string_view& tag) |
| 1621 | { |
| 1622 | if (tag == "chunk") |
| 1623 | { |
| 1624 | if (mChunk.length()) |
| 1625 | { |
| 1626 | ArrayOf<char> buf{ mChunk.length() / 4 * 3 }; |
| 1627 | |
| 1628 | int len = Base64::Decode(mChunk, buf.get()); |
| 1629 | if (len) |
| 1630 | { |
| 1631 | callSetChunk(true, len, buf.get(), &mXMLInfo); |
| 1632 | } |
| 1633 | |
| 1634 | mChunk.clear(); |
| 1635 | } |
| 1636 | mInChunk = false; |
| 1637 | } |
| 1638 | |
| 1639 | if (tag == "program") |
| 1640 | { |
| 1641 | if (mInSet) |
| 1642 | { |
| 1643 | callDispatcher(effEndSetProgram, 0, 0, NULL, 0.0); |
| 1644 | |
| 1645 | mInSet = false; |
| 1646 | } |
| 1647 | } |
| 1648 | } |
| 1649 | |
| 1650 | void VSTWrapper::HandleXMLContent(const std::string_view& content) |
| 1651 | { |