Fixed a bug related to setting of internal delay value (#10)

pull/12/head^2
Blackaddr Audio 5 years ago committed by GitHub
parent 8c2515ee44
commit 16fe699111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/effects/AudioEffectDelayExternal.cpp

@ -202,7 +202,11 @@ void BAAudioEffectDelayExternal::initialize(void)
avail = memsize - m_allocated[m_mem]; avail = memsize - m_allocated[m_mem];
if (m_requestedDelayLength > avail) samples = avail; if (m_requestedDelayLength > avail) {
samples = avail;
} else {
samples = m_requestedDelayLength;
}
m_memoryStart = m_allocated[m_mem]; m_memoryStart = m_allocated[m_mem];
m_allocated[m_mem] += samples; m_allocated[m_mem] += samples;
m_memoryLength = samples; m_memoryLength = samples;

Loading…
Cancel
Save