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 3f3252bff3e60f384f48d34eb98a57105241eb11
parent 3a8d026597e11198ed24a6bd381fbdb6f123541f
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed,  1 May 2024 12:57:42 +0200

fix XT timing, incorrect after moving code to base class due to wrong samplerate used

Diffstat:
Msource/wLib/wHardware.cpp | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/source/wLib/wHardware.cpp b/source/wLib/wHardware.cpp @@ -118,8 +118,7 @@ namespace wLib const auto ucClock = getUc().getSim().getSystemClockHz(); - constexpr double divInv = 1.0 / 44100.0; // stereo interleaved - const double ucCyclesPerFrame = static_cast<double>(ucClock) * divInv; + const double ucCyclesPerFrame = static_cast<double>(ucClock) * m_samplerateInv; const auto esaiDelta = esaiFrameIndex - m_lastEsaiFrameIndex;