Made rewind a parameter. Attempts to fix the time range not being recalled properly in hosts because the time range parameters may be quickly changed when the plugin is initializing and doing the sound source smoothing fades. etc

This commit is contained in:
xenakios
2018-05-18 16:20:51 +03:00
parent 236e6b076e
commit db7a15d161
7 changed files with 35 additions and 15 deletions

View File

@ -330,6 +330,7 @@ public:
void setActiveRange(Range<double> rng) override
{
std::lock_guard<std::mutex> locker(m_mutex);
/*
if (rng.contains(getCurrentPositionPercent()))
{
@ -338,7 +339,7 @@ public:
}
*/
m_seekfade.requestedrange = rng;
if (m_seekfade.state == 0)
//if (m_seekfade.state == 0)
{
m_seekfade.counter = 0;
m_seekfade.state = 1;