gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 1041a95a06ca3166a45ab2ec00b97418e0b63aca
parent 797f168f64307163e1b4df0984af4063e2bdce6e
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu,  1 Aug 2024 02:33:02 +0200

fix getState() corrupting existing data

Diffstat:
Msource/nord/n2x/n2xLib/n2xstate.cpp | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/source/nord/n2x/n2xLib/n2xstate.cpp b/source/nord/n2x/n2xLib/n2xstate.cpp @@ -147,10 +147,9 @@ namespace n2x bool State::getState(std::vector<uint8_t>& _state) { - _state.reserve(sizeof(m_multi) + sizeof(m_singles)); - _state.insert(_state.begin(), m_multi.begin(), m_multi.end()); + _state.insert(_state.end(), m_multi.begin(), m_multi.end()); for (const auto& single : m_singles) - _state.insert(_state.begin(), single.begin(), single.end()); + _state.insert(_state.end(), single.begin(), single.end()); return true; }