Make seeking work again. Some variadic template, fold expression etc trickery for value tree etc. Readme change.

This commit is contained in:
xenakios
2018-02-23 20:46:51 +02:00
parent 3c20facdbc
commit 3a8da6de0c
3 changed files with 25 additions and 14 deletions

View File

@ -280,6 +280,8 @@ public:
}
void seek(double pos) override //0=start,1.0=end
{
seekImpl(pos);
/*
std::lock_guard<std::mutex> locker(m_mutex);
if (m_seekfade.state == 0)
{
@ -288,9 +290,9 @@ public:
}
m_seekfade.length = 16384;
m_seekfade.requestedpos = pos;
*/
}
std::pair<Range<double>,Range<double>> getCachedRangesNormalized()
{
if (m_afreader == nullptr)