Add looping enabled parameter

This commit is contained in:
xenakios
2018-05-09 12:33:06 +03:00
parent 8a4aee93ec
commit 28f14ddf7a
4 changed files with 13 additions and 4 deletions

View File

@ -142,6 +142,8 @@ void StretchAudioSource::setLoopingEnabled(bool b)
ScopedLock locker(m_cs);
if (m_inputfile != nullptr)
{
if (m_inputfile->isLooping() == false && b == true)
seekPercent(m_inputfile->getActiveRange().getStart());
m_inputfile->setLoopEnabled(b);
}
}