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 0b11b3f1beadd0ca2c51da3f90d679cf7ea79ae3
parent 37c61d8c9af8f24b1c221ce0dcbf34b64ee411c3
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 28 Jul 2024 21:18:36 +0200

support to load 64k preset flash, commented for now because we don't actually need it

Diffstat:
Msource/nord/n2x/n2xLib/n2xflash.cpp | 22++++++++++++++++++++++
Msource/nord/n2x/n2xLib/n2xflash.h | 2++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/source/nord/n2x/n2xLib/n2xflash.cpp b/source/nord/n2x/n2xLib/n2xflash.cpp @@ -0,0 +1,22 @@ +#include "n2xflash.h" + +#include "n2xtypes.h" +#include "synthLib/os.h" + +namespace n2x +{ + Flash::Flash() + { + return; + const auto filename = synthLib::findROM(g_flashSize, g_flashSize); + + if(!filename.empty()) + { + std::vector<uint8_t> d; + if(synthLib::readFile(d, filename)) + { + setData(d); + } + } + } +} diff --git a/source/nord/n2x/n2xLib/n2xflash.h b/source/nord/n2x/n2xLib/n2xflash.h @@ -6,5 +6,7 @@ namespace n2x { class Flash : public hwLib::I2cFlash { + public: + Flash(); }; }