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 d2911083cbae5914ddb6bd2f56963d84992e1c9b
parent 5d74b3c8a158ed6d776e2d628eca15a593974501
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu, 25 Jul 2024 01:01:28 +0200

log mips to stdout

Diffstat:
Msource/nord/n2x/n2xLib/n2xdsp.h | 2++
Msource/nord/n2x/n2xLib/n2xhardware.h | 3+++
Msource/nord/n2x/n2xTestConsole/n2xTestConsole.cpp | 3+++
3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/source/nord/n2x/n2xLib/n2xdsp.h b/source/nord/n2x/n2xLib/n2xdsp.h @@ -43,6 +43,8 @@ namespace n2x void advanceSamples(uint32_t _samples, uint32_t _latency); + dsp56k::DSPThread& getDSPThread() const { return *m_thread.get(); } + private: void onUCRxEmpty(bool _needMoreData); void hdiTransferUCtoDSP(uint32_t _word); diff --git a/source/nord/n2x/n2xLib/n2xhardware.h b/source/nord/n2x/n2xLib/n2xhardware.h @@ -33,6 +33,9 @@ namespace n2x haltDSP(); } + auto& getDSPA() { return m_dspA; } + auto& getDSPB() { return m_dspB; } + private: void ensureBufferSize(uint32_t _frames); void onEsaiCallback(); diff --git a/source/nord/n2x/n2xTestConsole/n2xTestConsole.cpp b/source/nord/n2x/n2xTestConsole/n2xTestConsole.cpp @@ -23,6 +23,9 @@ int main() std::unique_ptr<n2x::Hardware> hw; hw.reset(new n2x::Hardware()); + hw->getDSPA().getDSPThread().setLogToStdout(true); + hw->getDSPB().getDSPThread().setLogToStdout(true); + std::thread ucThread([&]() { dsp56k::ThreadTools::setCurrentThreadName("MC68331");