Smooth play range change almost working...

This commit is contained in:
xenakios
2018-02-22 21:03:46 +02:00
parent a8079b277f
commit 122c90bf3f
2 changed files with 39 additions and 11 deletions

View File

@ -649,8 +649,8 @@ void StretchAudioSource::setPlayRange(Range<double> playrange, bool isloop)
m_stream_end_reached = false;
m_inputfile->setActiveRange(m_playrange);
m_inputfile->setLoopEnabled(isloop);
if (m_playrange.contains(m_seekpos) == false)
m_inputfile->seek(m_playrange.getStart());
//if (m_playrange.contains(m_seekpos) == false)
// m_inputfile->seek(m_playrange.getStart());
m_seekpos = m_playrange.getStart();
++m_param_change_count;
m_cs.exit();