commit 0234da926ff6099650c629287e599e6187a6f4d9
parent 30e7536bab38c6b60f1ad1cdeb2dd6ec9e34bf62
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Thu, 1 Aug 2024 23:14:50 +0200
shutdown..
Diffstat:
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/source/nord/n2x/n2xLib/n2xhardware.cpp b/source/nord/n2x/n2xLib/n2xhardware.cpp
@@ -38,24 +38,15 @@ namespace n2x
m_destroy = true;
while(m_destroy)
- {
- resumeDSPs();
processAudio(8,64);
- }
-
- constexpr auto notifyCount = dsp56k::Audio::RingBufferSize * 2;
m_dspA.terminate();
m_dspB.terminate();
- for(uint32_t i=0; i<notifyCount; ++i)
-
m_esaiFrameIndex = 0;
m_maxEsaiCallbacks = std::numeric_limits<uint32_t>::max();
m_esaiLatency = 0;
- for(uint32_t i=0; i<notifyCount; ++i)
-
while(!m_dspA.getDSPThread().runThread() || !m_dspB.getDSPThread().runThread())
{
// DSP A waits for space to push to DSP B
@@ -307,6 +298,7 @@ namespace n2x
processUC();
processUC();
}
+ resumeDSPs();
m_destroy = false;
}