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 e7b3843632b18327bf22ed1bc439f252a37fda7b
parent 14e1034b8846d3d34b8ece96cbcf7895f0838143
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 20 Jul 2021 21:05:52 +0200

fix warnings

Diffstat:
Msource/synthLib/plugin.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/synthLib/plugin.cpp b/source/synthLib/plugin.cpp @@ -198,7 +198,7 @@ namespace synthLib { for(auto it = m_midiIn.begin(); it != m_midiIn.end(); ++it) { - if(it->offset > insertPos) + if(static_cast<int>(it->offset) > insertPos) { evClock.a = needsStart ? M_START : M_TIMINGCLOCK; evClock.offset = insertPos; @@ -238,7 +238,7 @@ namespace synthLib const auto latency = static_cast<uint32_t>(std::ceil(static_cast<float>(m_blockSize) * m_device->getSamplerate() * m_hostSamplerateInv)); m_device->setLatencySamples(latency); - m_deviceLatency = m_device->getInternalLatencySamples() * m_hostSamplerate / m_device->getSamplerate(); + m_deviceLatency = static_cast<uint32_t>(m_device->getInternalLatencySamples() * m_hostSamplerate / m_device->getSamplerate()); } void Plugin::setBlockSize(const uint32_t _blockSize)