Update isobuffer.cpp

This commit is contained in:
Chris Esposito 2019-01-29 09:45:45 +11:00 committed by GitHub
parent 9e2f678dce
commit 0cb7acfbc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ void isoBuffer::checkTriggered()
double isoBuffer::getDelayedTriggerPoint(double delay)
{
if (m_triggerPositionList.size == 0)
return 0;
const uint32_t delaySamples = delay * m_samplesPerSecond;
auto isValid = [=](uint32_t index)->bool