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 f57ee469da77651619e2f7124fbb9c5701c08029
parent 05d5910082e440fdb88d5b22a69c314110f68119
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat,  2 Apr 2022 02:34:46 +0200

skip resamplers if device samplerate matches host samplerate

Diffstat:
Msource/synthLib/resamplerInOut.cpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/source/synthLib/resamplerInOut.cpp b/source/synthLib/resamplerInOut.cpp @@ -84,6 +84,12 @@ namespace synthLib if(!m_in || !m_out) return; + if(m_samplerateDevice == m_samplerateHost) + { + _processFunc(_inputs, _outputs, _numSamples, _midiIn, _midiOut); + return; + } + const auto devDivHost = m_samplerateDevice / m_samplerateHost; const auto hostDivDev = m_samplerateHost / m_samplerateDevice;