Maybe nicer fix for restoring the play range. Use recursive mutex in audio source.

This commit is contained in:
xenakios
2018-05-21 20:25:32 +03:00
parent 1d283c419c
commit 552c165628
2 changed files with 12 additions and 10 deletions

View File

@ -727,7 +727,7 @@ void StretchAudioSource::setOnsetDetection(double x)
void StretchAudioSource::setPlayRange(Range<double> playrange)
{
if (m_playrange.isEmpty() == false && playrange == m_playrange)
if ((m_playrange.isEmpty() == false && playrange == m_playrange) || playrange==m_inputfile->getActiveRange())
return;
if (m_cs.tryEnter())
{